From 742d1764a6fb1fb9269dc9ffe08319da98f4d7b8 Mon Sep 17 00:00:00 2001 From: Brian Ashworth Date: Mon, 1 Oct 2018 09:41:15 -0400 Subject: Fix smart gaps --- sway/input/seat.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sway/input/seat.c') diff --git a/sway/input/seat.c b/sway/input/seat.c index 4817eae7..34b64d9c 100644 --- a/sway/input/seat.c +++ b/sway/input/seat.c @@ -760,6 +760,12 @@ void seat_set_focus_warp(struct sway_seat *seat, struct sway_node *node, seat->has_focus = true; + if (config->smart_gaps) { + // When smart gaps is on, gaps may change when the focus changes so + // the workspace needs to be arranged + arrange_workspace(new_workspace); + } + update_debug_tree(); } -- cgit v1.2.3