From 1527f2b8a6c65b4bccf4628a83316b8445ee4597 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Thu, 12 Jun 2014 21:01:06 +0200 Subject: [PATCH] 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 --- src/click.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) 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; } -- 2.39.5