]> git.sur5r.net Git - i3/i3/commitdiff
Revert "Rerender on button press only when focus changes"
authorMichael Stapelberg <michael@stapelberg.de>
Thu, 12 Jun 2014 19:01:06 +0000 (21:01 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Thu, 12 Jun 2014 19:03:13 +0000 (21:03 +0200)
This reverts commit b714878f52ef7c175699ed831c5925a577621f5a.

That commit introduced a regression: clicking on floating windows would
no longer raise them reliably.

fixes #1260

src/click.c

index 69cb7d22b2cb057bdb9e2b002e6ecc3c0741a63a..dbd557d0ede8ba1f0bb7f010b9c688034b97a908 100644 (file)
@@ -171,9 +171,6 @@ static int route_click(Con *con, xcb_button_press_event_t *event, const bool mod
     DLOG("--> OUTCOME = %p\n", con);
     DLOG("type = %d, name = %s\n", con->type, con->name);
 
-    /* if focus changes, we must rerender */
-    Con *initially_focused = focused;
-
     /* don’t handle dockarea cons, they must not be focused */
     if (con->parent->type == CT_DOCKAREA)
         goto done;
@@ -300,10 +297,7 @@ static int route_click(Con *con, xcb_button_press_event_t *event, const bool mod
 done:
     xcb_allow_events(conn, XCB_ALLOW_REPLAY_POINTER, event->time);
     xcb_flush(conn);
-
-    if (initially_focused != focused)
-        tree_render();
-
+    tree_render();
     return 0;
 }