summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qapplication_x11.cpp
diff options
context:
space:
mode:
authorRobert Griebl <rgriebl@trolltech.com>2010-03-22 13:45:07 (GMT)
committerRobert Griebl <rgriebl@trolltech.com>2010-03-22 13:45:07 (GMT)
commit6390248b11b3596d8c946c232e9b0d832dc42941 (patch)
treec9227081815a68b061c8a4f57612bb9ec7da3ef9 /src/gui/kernel/qapplication_x11.cpp
parentf7c9db16be26c0c273ae141a88da80fae44c2304 (diff)
downloadQt-6390248b11b3596d8c946c232e9b0d832dc42941.zip
Qt-6390248b11b3596d8c946c232e9b0d832dc42941.tar.gz
Qt-6390248b11b3596d8c946c232e9b0d832dc42941.tar.bz2
Make QWidget::activateWindow() NET window manager aware.
Use the _NET_ACTIVE_WINDOW atom if the current window manager supports it - otherwise fall back to XSetInputFocus() Reviewed-by: bhughes
Diffstat (limited to 'src/gui/kernel/qapplication_x11.cpp')
-rw-r--r--src/gui/kernel/qapplication_x11.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/kernel/qapplication_x11.cpp b/src/gui/kernel/qapplication_x11.cpp
index 985f825..e276ed2 100644
--- a/src/gui/kernel/qapplication_x11.cpp
+++ b/src/gui/kernel/qapplication_x11.cpp
@@ -275,6 +275,8 @@ static const char * x11_atomnames = {
"_NET_SYSTEM_TRAY_VISUAL\0"
+ "_NET_ACTIVE_WINDOW\0"
+
// Property formats
"COMPOUND_TEXT\0"
"TEXT\0"