From: Michael Stapelberg Date: Thu, 12 Jun 2014 19:01:06 +0000 (+0200) Subject: Revert "Rerender on button press only when focus changes" X-Git-Tag: 4.8~14 X-Git-Url: https://git.sur5r.net/?p=i3%2Fi3;a=commitdiff_plain;h=1527f2b8a6c65b4bccf4628a83316b8445ee4597 Revert "Rerender on button press only when focus changes" This reverts commit b714878f52ef7c175699ed831c5925a577621f5a. That commit introduced a regression: clicking on floating windows would no longer raise them reliably. fixes #1260 --- diff --git a/src/click.c b/src/click.c index 69cb7d22..dbd557d0 100644 --- a/src/click.c +++ b/src/click.c @@ -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; }