diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-10-09 15:37:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-09 15:37:42 +0200 |
commit | 53164c4aa27f17d58cf867d70001c2737ecb0429 (patch) | |
tree | eb2da6c20b307b3c0bebd5316b1667c6a4e4842a /sway/tree | |
parent | e143c9613d350b74e02c5ac3c9a055ab26fc9588 (diff) | |
parent | 5e9c61ac23fff1185100a19b36803380441b3e81 (diff) |
Merge pull request #2803 from RedSoxFan/fix-2802
Only consider tiling views for gaps outer
Diffstat (limited to 'sway/tree')
-rw-r--r-- | sway/tree/workspace.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sway/tree/workspace.c b/sway/tree/workspace.c index b357d83d..d7650560 100644 --- a/sway/tree/workspace.c +++ b/sway/tree/workspace.c @@ -624,7 +624,10 @@ void workspace_add_gaps(struct sway_workspace *ws) { if (config->smart_gaps) { struct sway_seat *seat = input_manager_get_default_seat(input_manager); struct sway_container *focus = - seat_get_focus_inactive_view(seat, &ws->node); + seat_get_focus_inactive_tiling(seat, ws); + if (focus && !focus->view) { + focus = seat_get_focus_inactive_view(seat, &focus->node); + } if (focus && focus->view && view_is_only_visible(focus->view)) { return; } |