only look for FocusOut events on the same window

This commit is contained in:
Dana Jansens 2003-04-19 18:30:58 +00:00
parent bcbe5c8f82
commit 540f547bab

View file

@ -291,7 +291,8 @@ static gboolean event_ignore(XEvent *e, Client *client)
gboolean fallback = TRUE;
while (TRUE) {
if (!XCheckTypedEvent(ob_display, FocusOut, &fe))
if (!XCheckTypedWindowEvent(ob_display, FocusOut,
e->xfocus.window,&fe))
if (!XCheckTypedEvent(ob_display, FocusIn, &fe))
break;
if (fe.type == FocusOut) {