ignore much fewer focus events. only ignore focusout's from activating a grab

This commit is contained in:
Dana Jansens 2003-01-08 09:10:34 +00:00
parent b8f89ee368
commit 93811226bb

View file

@ -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;