diff options
author | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2010-03-24 10:27:11 (GMT) |
---|---|---|
committer | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2010-03-24 15:04:38 (GMT) |
commit | cb530c3336964914fcec26c6ea001122104353ba (patch) | |
tree | 163d882e476e54699f0d35b3faeb9c118d004184 /src/gui/kernel/qwidget_x11.cpp | |
parent | 661bcc601502125ca29930394daf90682f454612 (diff) | |
download | Qt-cb530c3336964914fcec26c6ea001122104353ba.zip Qt-cb530c3336964914fcec26c6ea001122104353ba.tar.gz Qt-cb530c3336964914fcec26c6ea001122104353ba.tar.bz2 |
Do not use _NET_ACTIVE_WINDOW for nonmanaged windows.
If a window has X11BypassWindowManager hint, we shouldn't bother asking the
windowmanager to active it using the _NET_ACTIVE_WINDOW protocol and just go
though Xorg directly.
Reviewed-by: Bradley T. Hughes
Diffstat (limited to 'src/gui/kernel/qwidget_x11.cpp')
-rw-r--r-- | src/gui/kernel/qwidget_x11.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/kernel/qwidget_x11.cpp b/src/gui/kernel/qwidget_x11.cpp index c1363d2..457e92c 100644 --- a/src/gui/kernel/qwidget_x11.cpp +++ b/src/gui/kernel/qwidget_x11.cpp @@ -1642,7 +1642,8 @@ void QWidget::activateWindow() X11->userTime = X11->time; qt_net_update_user_time(tlw, X11->userTime); - if (X11->isSupportedByWM(ATOM(_NET_ACTIVE_WINDOW))) { + if (X11->isSupportedByWM(ATOM(_NET_ACTIVE_WINDOW)) + && !(tlw->windowFlags() & Qt::X11BypassWindowManagerHint)) { XEvent e; e.xclient.type = ClientMessage; e.xclient.message_type = ATOM(_NET_ACTIVE_WINDOW); |