aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorOrestis Floros <orestisflo@gmail.com>2023-05-29 14:08:46 +0200
committerGitHub <noreply@github.com>2023-05-29 14:08:46 +0200
commita95870120ce30843d95bdc5d87d26973789ed947 (patch)
tree1391535515343f5072f32a0ba8d5baceef71669d /src
parentfde43a078b1fac5fc5842eb1cfb7e2a1a9f7bca8 (diff)
downloadi3-a95870120ce30843d95bdc5d87d26973789ed947.tar.gz
i3-a95870120ce30843d95bdc5d87d26973789ed947.zip
fix workspace not being focused on title bar scroll (#5518)
Diffstat (limited to 'src')
-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));