summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-04-18 22:05:39 +0000
committerDana Jansens <danakj@orodu.net>2003-04-18 22:05:39 +0000
commit142c14fcc89ae2c056d7aed8b662754b245e97e3 (patch)
tree2c3ba79f13fbc0492ddda247e9c7cd2c97cfc92d
parent6a9e7dea8e9c20a65e5bb513ca9d7a92f3db47d3 (diff)
nm cant do it.. damn
-rw-r--r--openbox/event.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/openbox/event.c b/openbox/event.c
index 337841ac..91aa5106 100644
--- a/openbox/event.c
+++ b/openbox/event.c
@@ -333,22 +333,23 @@ 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,
- NotifyNonlinearVirtual occurs when closing a gtk app's menu */
+ /* NotifyVirtual occurs when ungrabbing the pointer */
if (e->xcrossing.mode == NotifyGrab ||
e->xcrossing.detail == NotifyInferior ||
(e->xcrossing.mode == NotifyUngrab &&
- (e->xcrossing.detail == NotifyVirtual ||
- e->xcrossing.detail == NotifyNonlinearVirtual))) {
-#ifdef DEBUG_FOCUS
- g_message("EnterNotify mode %d detail %d on %lx IGNORED",
+ e->xcrossing.detail == NotifyVirtual)) {
+#ifndef DEBUG_FOCUS
+ g_message("%sNotify mode %d detail %d on %lx IGNORED",
+ (e->type == EnterNotify ? "Enter" : "Leave"),
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,
+#ifndef DEBUG_FOCUS
+ g_message("%sNotify mode %d detail %d on %lx",
+ (e->type == EnterNotify ? "Enter" : "Leave"),
+ e->xcrossing.mode,
e->xcrossing.detail, client?client->window:0);
#endif
break;