ignore all NotifyInferior crossing events again

This commit is contained in:
Dana Jansens 2003-09-24 03:07:10 +00:00
parent d261d21b7f
commit 9f03493b0c

View file

@ -303,6 +303,11 @@ static void event_hack_mods(XEvent *e)
static gboolean event_ignore(XEvent *e, ObClient *client) static gboolean event_ignore(XEvent *e, ObClient *client)
{ {
switch(e->type) { switch(e->type) {
case EnterNotify:
case LeaveNotify:
if (e->xcrossing.detail == NotifyInferior)
return TRUE;
break;
case FocusIn: case FocusIn:
/* NotifyAncestor is not ignored in FocusIn like it is in FocusOut /* NotifyAncestor is not ignored in FocusIn like it is in FocusOut
because of RevertToPointerRoot. If the focus ends up reverting to because of RevertToPointerRoot. If the focus ends up reverting to
@ -753,7 +758,6 @@ static void event_handle_client(ObClient *client, XEvent *e)
break; break;
case OB_FRAME_CONTEXT_FRAME: case OB_FRAME_CONTEXT_FRAME:
if (e->xcrossing.mode == NotifyGrab || if (e->xcrossing.mode == NotifyGrab ||
e->xcrossing.detail == NotifyInferior ||
e->xcrossing.mode == NotifyUngrab) e->xcrossing.mode == NotifyUngrab)
{ {
#ifdef DEBUG_FOCUS #ifdef DEBUG_FOCUS