Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / ui / gfx / x / x11_types.cc
index 48ce641..6c4f62d 100644 (file)
 namespace gfx {
 
 XDisplay* GetXDisplay() {
-  return base::MessagePumpForUI::GetDefaultXDisplay();
+  static XDisplay* display = NULL;
+  if (!display)
+    display = XOpenDisplay(NULL);
+  return display;
 }
 
 void PutARGBImage(XDisplay* display,