From: Dana Jansens Date: Wed, 8 Jan 2003 09:05:38 +0000 (+0000) Subject: ignore focus events from grabs X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=b8f89ee368324f54a95f9ac8c5a24948365fb5ab;p=chaz%2Fopenbox ignore focus events from grabs --- 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");