diff options
author | Tudor Brindus <[email protected]> | 2020-05-31 19:03:42 -0400 |
---|---|---|
committer | Brian Ashworth <[email protected]> | 2020-06-08 19:01:45 -0400 |
commit | ed08f2f20cc533716001829398bdad8f0e98049b (patch) | |
tree | a61b4e212bcef3383bbe49256cf83f6bccd4e3a4 /sway/tree/workspace.c | |
parent | 14e887bc3dee8441ba51a593ccdc49e381d33f82 (diff) |
tree/view: fix smart gaps when ancestor container is tabbed or stacked
Fixes #5406.
Diffstat (limited to 'sway/tree/workspace.c')
-rw-r--r-- | sway/tree/workspace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/tree/workspace.c b/sway/tree/workspace.c index 5568d1f5..0fa28951 100644 --- a/sway/tree/workspace.c +++ b/sway/tree/workspace.c @@ -709,7 +709,7 @@ void workspace_add_gaps(struct sway_workspace *ws) { if (focus && !focus->view) { focus = seat_get_focus_inactive_view(seat, &focus->node); } - if (focus && focus->view && view_is_only_visible(focus->view)) { + if (focus && focus->view && view_ancestor_is_only_visible(focus->view)) { ws->current_gaps.top = 0; ws->current_gaps.right = 0; ws->current_gaps.bottom = 0; |