mirror of
https://github.com/swaywm/sway.git
synced 2026-04-17 06:46:32 -04:00
tree/view: fix smart gaps when ancestor container is tabbed or stacked
Fixes #5406.
This commit is contained in:
parent
14e887bc3d
commit
ed08f2f20c
3 changed files with 13 additions and 11 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue