projects
/
platform
/
framework
/
web
/
crosswalk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git]
/
src
/
ui
/
gfx
/
x
/
x11_types.cc
diff --git
a/src/ui/gfx/x/x11_types.cc
b/src/ui/gfx/x/x11_types.cc
index
48ce641
..
6c4f62d
100644
(file)
--- a/
src/ui/gfx/x/x11_types.cc
+++ b/
src/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,