Index: ui/gfx/x/x11_types.cc |
diff --git a/ui/gfx/x/x11_types.cc b/ui/gfx/x/x11_types.cc |
index 48ce6416b697b32e9e0a6cb3748631ba06294cd2..6c4f62db989be3c6946efea4119f51c2532f8ff1 100644 |
--- a/ui/gfx/x/x11_types.cc |
+++ b/ui/gfx/x/x11_types.cc |
@@ -11,7 +11,10 @@ |
namespace gfx { |
XDisplay* GetXDisplay() { |
- return base::MessagePumpForUI::GetDefaultXDisplay(); |
+ static XDisplay* display = NULL; |
+ if (!display) |
+ display = XOpenDisplay(NULL); |
+ return display; |
} |
void PutARGBImage(XDisplay* display, |