]> git.sur5r.net Git - i3/i3/commit
Skip FocusIn events with mode == NOTIFY_MODE_GRAB or NOTIFY_MODE_UNGRAB
authorMichael Stapelberg <michael@stapelberg.de>
Wed, 30 Mar 2011 21:00:48 +0000 (23:00 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Wed, 30 Mar 2011 21:00:48 +0000 (23:00 +0200)
commit20b1fd4293b496341523686e93312f6ee73e1df8
tree70edb65d516a141b3801499cde5e958ba0ed1447
parent4fd4e619ec25970aa4319b7e988ad5b03599653d
Skip FocusIn events with mode == NOTIFY_MODE_GRAB or NOTIFY_MODE_UNGRAB

According to the Xlib Programming Manual section 10.7.2 [1], these events are
generated when keyboard grabs activate/deactivate, while we are only interested
in focus changes which are done by other programs independend from the
keyboard.

[1] http://tronche.com/gui/x/xlib/events/input-focus/grab.html
src/handlers.c