nm cant do it.. damn

This commit is contained in:
Dana Jansens 2003-04-18 22:05:39 +00:00
parent 6a9e7dea8e
commit 142c14fcc8

View file

@ -333,22 +333,23 @@ static gboolean event_ignore(XEvent *e, Client *client)
case LeaveNotify: case LeaveNotify:
/* NotifyUngrab occurs when a mouse button is released and the event is /* NotifyUngrab occurs when a mouse button is released and the event is
caused, like when lowering a window */ caused, like when lowering a window */
/* NotifyVirtual occurs when ungrabbing the pointer, /* NotifyVirtual occurs when ungrabbing the pointer */
NotifyNonlinearVirtual occurs when closing a gtk app's menu */
if (e->xcrossing.mode == NotifyGrab || if (e->xcrossing.mode == NotifyGrab ||
e->xcrossing.detail == NotifyInferior || e->xcrossing.detail == NotifyInferior ||
(e->xcrossing.mode == NotifyUngrab && (e->xcrossing.mode == NotifyUngrab &&
(e->xcrossing.detail == NotifyVirtual || e->xcrossing.detail == NotifyVirtual)) {
e->xcrossing.detail == NotifyNonlinearVirtual))) { #ifndef DEBUG_FOCUS
#ifdef DEBUG_FOCUS g_message("%sNotify mode %d detail %d on %lx IGNORED",
g_message("EnterNotify mode %d detail %d on %lx IGNORED", (e->type == EnterNotify ? "Enter" : "Leave"),
e->xcrossing.mode, e->xcrossing.mode,
e->xcrossing.detail, client?client->window:0); e->xcrossing.detail, client?client->window:0);
#endif #endif
return TRUE; return TRUE;
} }
#ifdef DEBUG_FOCUS #ifndef DEBUG_FOCUS
g_message("EnterNotify mode %d detail %d on %lx", e->xcrossing.mode, g_message("%sNotify mode %d detail %d on %lx",
(e->type == EnterNotify ? "Enter" : "Leave"),
e->xcrossing.mode,
e->xcrossing.detail, client?client->window:0); e->xcrossing.detail, client?client->window:0);
#endif #endif
break; break;