From b8f89ee368324f54a95f9ac8c5a24948365fb5ab Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 8 Jan 2003 09:05:38 +0000 Subject: [PATCH] ignore focus events from grabs --- otk/eventdispatcher.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/otk/eventdispatcher.cc b/otk/eventdispatcher.cc index 07164f0b..ad44fe2e 100644 --- a/otk/eventdispatcher.cc +++ b/otk/eventdispatcher.cc @@ -99,6 +99,9 @@ void OtkEventDispatcher::dispatchEvents(void) void OtkEventDispatcher::dispatchFocus(const XEvent &e) { + // ignore all focus changes from grabs + if (e.xfocus.mode != NotifyNormal) + return; if (e.type == FocusIn) { //printf("Got FocusIn!\n"); -- 2.45.2