From fb318e3617d39e30dabc6f82a49d93eae7a86464 Mon Sep 17 00:00:00 2001 From: mainzelm Date: Tue, 2 Sep 2003 10:13:08 +0000 Subject: [PATCH] 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". --- src/manager.scm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/manager.scm b/src/manager.scm index 42d55fe..1d80606 100644 --- a/src/manager.scm +++ b/src/manager.scm @@ -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)