aboutsummaryrefslogtreecommitdiffstats
path: root/sway/tree/workspace.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/tree/workspace.c')
-rw-r--r--sway/tree/workspace.c2
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;