client: fix focus subsystem
commit01eff69bf48bf0414aa2f14b1a5104821ecaac4a
authorMariusz Ceier <mceier@gmail.com>
Wed, 11 Feb 2009 17:32:27 +0000 (11 18:32 +0100)
committerJulien Danjou <julien@danjou.info>
Wed, 11 Feb 2009 17:54:02 +0000 (11 18:54 +0100)
tree7142a7c0ce06385e2fbfd7de8b8fdc689630d9ea
parent93386ff08f7097fdd5d5ba7bbdd2be1a141fedf4
client: fix focus subsystem

We don't need to unfocus currently selected client.
Added WM_TAKE_FOCUS atom, so we can implement correct ICCCM,
focus behavior, in relation to Input Models ( sections 4.1.7 [1],
4.2.7 [2] ).
Currently correctly implemented are, "No Input", and "Passive"
models, and additionally works "Locally Active".
To test focus-in and focus-out events I used program from [3].

[1] http://tronche.com/gui/x/icccm/sec-4.html#s-4.1.7
[2] http://tronche.com/gui/x/icccm/sec-4.html#s-4.2.7
[3] http://mail.gnome.org/archives/gtk-devel-list/2001-November/msg00334.html

Signed-off-by: Mariusz Ceier <mceier@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
client.c
common/atoms.list