Tony Crisci 8a618e4b00 bugfix: don't set input focus if not accepted
http://tronche.com/gui/x/icccm/sec-4.html#s-4.1.7

> Clients using the Globally Active model can only use a SetInputFocus request
> to acquire the input focus when they do not already have it on receipt of one
> of the following events:
> * ButtonPress
> * ButtonRelease
> * Passive-grabbed KeyPress
> * Passive-grabbed KeyRelease

Since managing a window happens on a MapNotify (which is absent from this
list), the window cannot accept input focus, so we should not try to focus
the window at all.

Fixes an issue with xfce4-notifyd which (correctly) declines focus when
we send WM_TAKE_FOCUS, which puts i3 in a state where i3 focus and X
focus are different when a notification appears.
2014-06-19 11:55:28 +02:00
2014-06-19 11:20:32 +02:00
2014-06-19 11:20:32 +02:00
2014-06-19 11:20:32 +02:00
2014-06-15 19:07:02 +02:00
2014-06-15 19:12:16 +02:00
2014-06-19 11:20:32 +02:00
2014-05-04 22:52:37 +02:00
2011-08-28 17:44:42 +02:00
2014-05-04 23:07:53 +02:00
2011-08-28 17:44:42 +02:00
Description
No description provided
15 MiB
Languages
C 58.6%
Perl 29%
Raku 9.4%
Ruby 1.2%
Shell 0.7%
Other 1.1%