ignore some focus events that shouldnt be reacted to

This commit is contained in:
Dana Jansens 2007-04-22 20:10:17 +00:00
parent dc43b74abd
commit eb1cd9cc49

View file

@ -348,10 +348,6 @@ static gboolean wanted_focusevent(XEvent *e)
if (detail == NotifyNonlinearVirtual)
return TRUE;
/* This means focus reverted off of a client */
if (detail == NotifyInferior)
return TRUE;
/* Otherwise.. */
return FALSE;
} else {
@ -391,7 +387,12 @@ static gboolean event_ignore(XEvent *e, ObClient *client)
{
switch(e->type) {
case FocusIn:
if (!wanted_focusevent(e))
return TRUE;
break;
case FocusOut:
if (client == NULL)
return TRUE;
if (!wanted_focusevent(e))
return TRUE;
break;