summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/xcb
diff options
context:
space:
mode:
authorMartin Gräßlin <mgraesslin@kde.org>2014-05-28 09:11:26 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-05-30 08:17:27 +0200
commitc040ba18aec6ef2b65d394e47b103fe14841dd88 (patch)
tree054dd02d13b9f03f12abffbc304126ae40fcd687 /src/plugins/platforms/xcb
parent51f6651d4c0097f8735ce2d2bfbf494d92c66274 (diff)
Dummy window for creating GLX context should be override redirect
Without having the dummy window being override redirect Qt might confuse window managers. Window managers might react on the create notify event, but there is no reason to do anything with the window as it is most likely already destroyed at the time the window manager receives the create notify event. By marking the window as override redirect we indicate to the window manager that they can ignore it. Change-Id: I35259436da4548f4190b92de412fb0de1d2e8077 Reviewed-by: Uli Schlachter <psychon@znc.in> Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
Diffstat (limited to 'src/plugins/platforms/xcb')
-rw-r--r--src/plugins/platforms/xcb/qglxintegration.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/platforms/xcb/qglxintegration.cpp b/src/plugins/platforms/xcb/qglxintegration.cpp
index 7304930b8b..c18764a4bb 100644
--- a/src/plugins/platforms/xcb/qglxintegration.cpp
+++ b/src/plugins/platforms/xcb/qglxintegration.cpp
@@ -91,11 +91,12 @@ static Window createDummyWindow(Display *dpy, XVisualInfo *visualInfo, int scree
a.background_pixel = WhitePixel(dpy, screenNumber);
a.border_pixel = BlackPixel(dpy, screenNumber);
a.colormap = cmap;
+ a.override_redirect = true;
Window window = XCreateWindow(dpy, rootWin,
0, 0, 100, 100,
0, visualInfo->depth, InputOutput, visualInfo->visual,
- CWBackPixel|CWBorderPixel|CWColormap, &a);
+ CWBackPixel|CWBorderPixel|CWColormap|CWOverrideRedirect, &a);
#ifndef QT_NO_DEBUG
XStoreName(dpy, window, "Qt GLX dummy window");
#endif