aboutsummaryrefslogtreecommitdiff
path: root/src/click.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/click.c')
-rw-r--r--src/click.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/click.c b/src/click.c
index 19c1dfaa..27dd7109 100644
--- a/src/click.c
+++ b/src/click.c
@@ -221,6 +221,9 @@ static void route_click(Con *con, xcb_button_press_event_t *event, const bool mo
/* 1: see if the user scrolled on the decoration of a stacked/tabbed con */
if (in_stacked && dest == CLICK_DECORATION && is_scroll) {
DLOG("Scrolling on a window decoration\n");
+ /* Correctly move workspace focus first, see: #5472 */
+ workspace_show(ws);
+
/* Use the focused child of the tabbed / stacked container, not the
* container the user scrolled on. */
Con *current = TAILQ_FIRST(&(con->parent->focus_head));