diff options
author | Tudor Brindus <me@tbrindus.ca> | 2020-05-31 19:03:42 -0400 |
---|---|---|
committer | Brian Ashworth <bosrsf04@gmail.com> | 2020-06-08 19:01:45 -0400 |
commit | ed08f2f20cc533716001829398bdad8f0e98049b (patch) | |
tree | a61b4e212bcef3383bbe49256cf83f6bccd4e3a4 /sway/tree/workspace.c | |
parent | input: tweak resize behavior to not change tab focus on border click (diff) | |
download | sway-ed08f2f20cc533716001829398bdad8f0e98049b.tar.gz sway-ed08f2f20cc533716001829398bdad8f0e98049b.tar.zst sway-ed08f2f20cc533716001829398bdad8f0e98049b.zip |
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) { | |||
709 | if (focus && !focus->view) { | 709 | if (focus && !focus->view) { |
710 | focus = seat_get_focus_inactive_view(seat, &focus->node); | 710 | focus = seat_get_focus_inactive_view(seat, &focus->node); |
711 | } | 711 | } |
712 | if (focus && focus->view && view_is_only_visible(focus->view)) { | 712 | if (focus && focus->view && view_ancestor_is_only_visible(focus->view)) { |
713 | ws->current_gaps.top = 0; | 713 | ws->current_gaps.top = 0; |
714 | ws->current_gaps.right = 0; | 714 | ws->current_gaps.right = 0; |
715 | ws->current_gaps.bottom = 0; | 715 | ws->current_gaps.bottom = 0; |