aboutsummaryrefslogtreecommitdiff
path: root/sway/input/seat.c
diff options
context:
space:
mode:
authorRyan Dwyer <RyanDwyer@users.noreply.github.com>2018-10-02 08:57:55 +1000
committerGitHub <noreply@github.com>2018-10-02 08:57:55 +1000
commitb542c5413efdbbe0bbf3be0196fe566b8c6bb07f (patch)
tree6b9f56b3700dda60efdaff4446fc684009490b5b /sway/input/seat.c
parent9956a1a9ab7141da813e8db63adb7b800958400b (diff)
parent82559c16c701aa912b341ecbbd116c2992c5e698 (diff)
Merge pull request #2739 from RedSoxFan/fix-2653
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,
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();
}