From ad40ea4195ed30891501df8bce538ffacaf53332 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Wed, 22 Dec 2021 11:25:54 +1100 Subject: [PATCH] [client] x11: don't override the focus state if no EWMH focus support --- client/displayservers/X11/x11.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/displayservers/X11/x11.c b/client/displayservers/X11/x11.c index 54e47a5f..159ed51b 100644 --- a/client/displayservers/X11/x11.c +++ b/client/displayservers/X11/x11.c @@ -950,7 +950,7 @@ static int x11EventThread(void * unused) focused = true; } - if (x11.focused != focused) + if (x11.ewmhHasFocusEvent && x11.focused != focused) { x11.focused = focused; app_handleFocusEvent(focused);