mirror of
https://github.com/swaywm/sway.git
synced 2025-11-26 06:59:59 -05:00
Fix smart gaps
This commit is contained in:
parent
51f68e10ad
commit
742d1764a6
5 changed files with 63 additions and 24 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue