Revert "Rerender on button press only when focus changes"
This reverts commit b714878f52
.
That commit introduced a regression: clicking on floating windows would
no longer raise them reliably.
fixes #1260
This commit is contained in:
parent
9cee8dac5e
commit
1527f2b8a6
|
@ -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();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue