From 555891face48107630f54be18ef9635afe47224a Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Wed, 20 Jan 2021 01:21:19 +1100 Subject: [PATCH] [client] x11: filter out grab/ungrab focus/leave events --- client/displayservers/X11/x11.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/client/displayservers/X11/x11.c b/client/displayservers/X11/x11.c index 04fee7c1..209821ea 100644 --- a/client/displayservers/X11/x11.c +++ b/client/displayservers/X11/x11.c @@ -259,11 +259,17 @@ static bool x11EventFilter(SDL_Event * event) } case FocusIn: + if (xe.xfocus.mode != NotifyNormal) + return true; + x11.focused = true; app_handleFocusEvent(true); return true; case FocusOut: + if (xe.xfocus.mode != NotifyNormal) + return true; + x11.focused = false; app_handleFocusEvent(false); return true;