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 | |
parent | Merge pull request #2804 from Emantor/swaynag-double-free (diff) | |
parent | Only consider tiling views for gaps outer (diff) | |
download | sway-53164c4aa27f17d58cf867d70001c2737ecb0429.tar.gz sway-53164c4aa27f17d58cf867d70001c2737ecb0429.tar.zst sway-53164c4aa27f17d58cf867d70001c2737ecb0429.zip |
Merge pull request #2803 from RedSoxFan/fix-2802
Only consider tiling views for gaps outer
-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) { | |||
624 | if (config->smart_gaps) { | 624 | if (config->smart_gaps) { |
625 | struct sway_seat *seat = input_manager_get_default_seat(input_manager); | 625 | struct sway_seat *seat = input_manager_get_default_seat(input_manager); |
626 | struct sway_container *focus = | 626 | struct sway_container *focus = |
627 | seat_get_focus_inactive_view(seat, &ws->node); | 627 | seat_get_focus_inactive_tiling(seat, ws); |
628 | if (focus && !focus->view) { | ||
629 | focus = seat_get_focus_inactive_view(seat, &focus->node); | ||
630 | } | ||
628 | if (focus && focus->view && view_is_only_visible(focus->view)) { | 631 | if (focus && focus->view && view_is_only_visible(focus->view)) { |
629 | return; | 632 | return; |
630 | } | 633 | } |