From 93811226bb5207731da736ab706f150fe915466a Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 8 Jan 2003 09:10:34 +0000 Subject: [PATCH] ignore much fewer focus events. only ignore focusout's from activating a grab --- otk/eventdispatcher.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/otk/eventdispatcher.cc b/otk/eventdispatcher.cc index ad44fe2e..6c15a60b 100644 --- a/otk/eventdispatcher.cc +++ b/otk/eventdispatcher.cc @@ -99,10 +99,6 @@ 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"); @@ -113,6 +109,10 @@ void OtkEventDispatcher::dispatchFocus(const XEvent &e) } else if (e.type == FocusOut) { //printf("Got FocusOut!\n"); + // ignore FocusOut changes from grabs + if (e.xfocus.mode == NotifyGrab) + return; + // FocusOut events just make us look for FocusIn events. They are ignored // otherwise. XEvent fi; -- 2.39.2