summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-05-17 23:11:14 +0000
committerDana Jansens <danakj@orodu.net>2007-05-17 23:11:14 +0000
commite47499a07c28f68889dab2b06d03a827c5238e60 (patch)
tree6b36001defab2a062366f85102fe30ede1fa1135
parent1aa4c53a4fbc29c9b2bc7c210545345223ff3891 (diff)
don't ignore the same enter events more than once
-rw-r--r--openbox/event.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/openbox/event.c b/openbox/event.c
index 08ec9db2..9720f24b 100644
--- a/openbox/event.c
+++ b/openbox/event.c
@@ -1721,6 +1721,7 @@ void event_ignore_queued_enters()
{
GSList *saved = NULL, *it;
XEvent *e;
+ gint i = 0;
XSync(ob_display, FALSE);
@@ -1731,10 +1732,13 @@ void event_ignore_queued_enters()
ObWindow *win;
win = g_hash_table_lookup(window_map, &e->xany.window);
- if (win && WINDOW_IS_CLIENT(win))
+ /* check to make sure we're not ignoring the same event multiple
+ times */
+ if (win && WINDOW_IS_CLIENT(win) && i >= ignore_enter_focus)
++ignore_enter_focus;
saved = g_slist_append(saved, e);
+ ++i;
} else {
g_free(e);
break;