aboutsummaryrefslogtreecommitdiff
path: root/sway/input/cursor.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/input/cursor.c')
-rw-r--r--sway/input/cursor.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sway/input/cursor.c b/sway/input/cursor.c
index 9a0b4f01..0f8202ea 100644
--- a/sway/input/cursor.c
+++ b/sway/input/cursor.c
@@ -162,7 +162,11 @@ void cursor_send_pointer_motion(struct sway_cursor *cursor, uint32_t time_msec,
seat_set_focus_warp(cursor->seat, c, false);
}
} else {
- seat_set_focus_warp(cursor->seat, c, false);
+ // Don't switch focus on mouseover for stacked and tabbed layouts
+ if(c->parent && c->parent->layout != L_STACKED
+ && c->parent->layout != L_TABBED) {
+ seat_set_focus_warp(cursor->seat, c, false);
+ }
}
}