Add support for _NET_ACTIVE_WINDOW on xcb
authorJan Arne Petersen <jpetersen@openismus.com>
Tue, 28 Feb 2012 09:54:34 +0000 (10:54 +0100)
committerQt by Nokia <qt-info@nokia.com>
Thu, 1 Mar 2012 11:16:57 +0000 (12:16 +0100)
commitfe092d1a6da74c6473ee4e563498821a1e162955
tree9c5b7d253484b3bee15b28cf3d9e4c06999d2566
parent9e893f68104689b057bffeb57e892163e2561b20
Add support for _NET_ACTIVE_WINDOW on xcb

Use a _NET_ACTIVE_WINDOW client message instead of xcb_set_input_focus
for activating toplevel windows on xcb.

According to the Extended Window Manager Hints the right way to activate
a top-level window is using _NET_ACTIVE_WINDOW (when it is supported by
the WM). Other approaches like calling xcb_set_input_focus should be
avoided when possible, since the WM cannot intercept them.

Change-Id: I9be4901f56cbcfb563baf73ccd71ff17a9bdc1d2
Reviewed-by: Uli Schlachter <psychon@znc.in>
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
src/plugins/platforms/xcb/qxcbwindow.cpp