]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Re-enable X11 Eventmask *after* pushing all the X11 changes
authorMichael Stapelberg <michael@stapelberg.de>
Fri, 26 Aug 2011 17:11:46 +0000 (19:11 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Fri, 26 Aug 2011 17:17:52 +0000 (19:17 +0200)
This should fix focus problems where EnterNotify events were generated while
moving windows. Hopefully it does not trigger any regressions :).

Fixes #500

src/x.c

diff --git a/src/x.c b/src/x.c
index f0307abf867d045e576d7f4f95af6eec81c83306..b2105c2f71ddf22ad89f0b4ee89fd85b8159b70c 100644 (file)
--- a/src/x.c
+++ b/src/x.c
@@ -813,6 +813,9 @@ void x_push_changes(Con *con) {
     if (stacking_changed)
         ewmh_update_client_list_stacking(btt_stack, btt_stack_num);
 
+    DLOG("\n\n PUSHING CHANGES\n\n");
+    x_push_node(con);
+
     //DLOG("Re-enabling EnterNotify\n");
     values[0] = FRAME_EVENT_MASK;
     CIRCLEQ_FOREACH_REVERSE(state, &state_head, state) {
@@ -821,8 +824,6 @@ void x_push_changes(Con *con) {
     }
     //DLOG("Done, EnterNotify re-enabled\n");
 
-    DLOG("\n\n PUSHING CHANGES\n\n");
-    x_push_node(con);
     x_deco_recurse(con);
 
     xcb_window_t to_focus = focused->frame;