aboutsummaryrefslogtreecommitdiff
path: root/sway/tree
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-10-09 15:37:42 +0200
committerGitHub <noreply@github.com>2018-10-09 15:37:42 +0200
commit53164c4aa27f17d58cf867d70001c2737ecb0429 (patch)
treeeb2da6c20b307b3c0bebd5316b1667c6a4e4842a /sway/tree
parente143c9613d350b74e02c5ac3c9a055ab26fc9588 (diff)
parent5e9c61ac23fff1185100a19b36803380441b3e81 (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.c5
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;
}