diff options
author | aavit <qt-info@nokia.com> | 2011-04-12 07:46:27 (GMT) |
---|---|---|
committer | aavit <qt-info@nokia.com> | 2011-04-12 07:46:27 (GMT) |
commit | 404568a382d09e603013734533239e18d2bf8957 (patch) | |
tree | 93d2a8e56e2ae761b68cb965448182171a5ae89d /src | |
parent | d044c182edda4379e07b7f693d3c14f815fd3842 (diff) | |
parent | 0aef3363aca14b0ba6ac56f86cadeb4acdef729e (diff) | |
download | Qt-404568a382d09e603013734533239e18d2bf8957.zip Qt-404568a382d09e603013734533239e18d2bf8957.tar.gz Qt-404568a382d09e603013734533239e18d2bf8957.tar.bz2 |
Merge branch 'master' of scm.dev.nokia.troll.no:qt/qt-fire-staging
Diffstat (limited to 'src')
-rw-r--r-- | src/opengl/qgl_x11egl.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/opengl/qgl_x11egl.cpp b/src/opengl/qgl_x11egl.cpp index 5755067..2ddfd35 100644 --- a/src/opengl/qgl_x11egl.cpp +++ b/src/opengl/qgl_x11egl.cpp @@ -105,10 +105,18 @@ QGLTemporaryContext::QGLTemporaryContext(bool, QWidget *) return; } + XSetWindowAttributes attr; + unsigned long mask; + attr.background_pixel = 0; + attr.border_pixel = 0; + attr.colormap = XCreateColormap(X11->display, DefaultRootWindow(X11->display), vi->visual, AllocNone); + attr.event_mask = StructureNotifyMask | ExposureMask; + mask = CWBackPixel | CWBorderPixel | CWColormap | CWEventMask; + d->window = XCreateWindow(X11->display, RootWindow(X11->display, screen), 0, 0, 1, 1, 0, vi->depth, InputOutput, vi->visual, - 0, 0); + mask, &attr); d->surface = eglCreateWindowSurface(d->display, config, (EGLNativeWindowType) d->window, NULL); |