Accept focus-change-event if NOTIFY-MODE is WHILE-GRABBED.

This allows focus changes to happen while a key is pressed and seems
to remedy the problem of having multiple windows, painted as
"focused".
This commit is contained in:
mainzelm 2003-09-02 10:13:08 +00:00
parent ebc29177c0
commit fb318e3617
1 changed files with 3 additions and 1 deletions

View File

@ -460,7 +460,9 @@
(if (window-exists? dpy (client:window client))
(let ((mode (focus-change-event-mode xevent))
(detail (focus-change-event-detail xevent)))
(if (and (eq? mode (notify-mode normal))
(if (and (or (eq? mode (notify-mode normal))
(eq? mode (notify-mode while-grabbed)))
(memq detail (list (notify-detail nonlinear)
(notify-detail nonlinear-virtual)
(notify-detail virtual)