summaryrefslogtreecommitdiff
path: root/openbox
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-04-18 21:56:53 +0000
committerDana Jansens <danakj@orodu.net>2003-04-18 21:56:53 +0000
commit6a9e7dea8e9c20a65e5bb513ca9d7a92f3db47d3 (patch)
treeebc137975ada3e4696476c9944dc90d3e876f8aa /openbox
parentc2b3a49e692b723bd277ef4360f89b9aaae4afd6 (diff)
ignore another type of crossing event, caused when leaving gtk popup menus
Diffstat (limited to 'openbox')
-rw-r--r--openbox/event.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/openbox/event.c b/openbox/event.c
index 1db1829c..337841ac 100644
--- a/openbox/event.c
+++ b/openbox/event.c
@@ -333,12 +333,24 @@ static gboolean event_ignore(XEvent *e, Client *client)
case LeaveNotify:
/* NotifyUngrab occurs when a mouse button is released and the event is
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 ||
e->xcrossing.detail == NotifyInferior ||
(e->xcrossing.mode == NotifyUngrab &&
- e->xcrossing.detail == NotifyVirtual))
+ (e->xcrossing.detail == NotifyVirtual ||
+ e->xcrossing.detail == NotifyNonlinearVirtual))) {
+#ifdef DEBUG_FOCUS
+ g_message("EnterNotify mode %d detail %d on %lx IGNORED",
+ e->xcrossing.mode,
+ e->xcrossing.detail, client?client->window:0);
+#endif
return TRUE;
+ }
+#ifdef DEBUG_FOCUS
+ g_message("EnterNotify mode %d detail %d on %lx", e->xcrossing.mode,
+ e->xcrossing.detail, client?client->window:0);
+#endif
break;
}
return FALSE;