aboutsummaryrefslogtreecommitdiffstats
path: root/sway/input/seat.c
diff options
context:
space:
mode:
authorLibravatar Brian Ashworth <bosrsf04@gmail.com>2018-10-01 09:41:15 -0400
committerLibravatar Brian Ashworth <bosrsf04@gmail.com>2018-10-01 09:41:15 -0400
commit742d1764a6fb1fb9269dc9ffe08319da98f4d7b8 (patch)
tree9a9dbe4dd968f78e728496a33e17bf695c773dcd /sway/input/seat.c
parentMerge pull request #2737 from Ragnis/criteria-floating (diff)
downloadsway-742d1764a6fb1fb9269dc9ffe08319da98f4d7b8.tar.gz
sway-742d1764a6fb1fb9269dc9ffe08319da98f4d7b8.tar.zst
sway-742d1764a6fb1fb9269dc9ffe08319da98f4d7b8.zip
Fix smart gaps
Diffstat (limited to 'sway/input/seat.c')
-rw-r--r--sway/input/seat.c6
1 files changed, 6 insertions, 0 deletions
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,
760 760
761 seat->has_focus = true; 761 seat->has_focus = true;
762 762
763 if (config->smart_gaps) {
764 // When smart gaps is on, gaps may change when the focus changes so
765 // the workspace needs to be arranged
766 arrange_workspace(new_workspace);
767 }
768
763 update_debug_tree(); 769 update_debug_tree();
764} 770}
765 771