diff options
author | Ian Fan <ianfan0@gmail.com> | 2018-10-10 12:23:04 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-10 12:23:04 +0000 |
commit | cd6917d4a821fe904a2c242dff673967aa3ad4b2 (patch) | |
tree | e21f0b633212c6b8084348f08fc68cec2efece8b /sway/tree/workspace.c | |
parent | d3f0e52784712696c7174d3adf8ec6cf3ac31b19 (diff) | |
parent | 782ed19bc30378126f44272c1e46f2a05a9b2db1 (diff) |
Merge branch 'master' into bar-bindsym
Diffstat (limited to 'sway/tree/workspace.c')
-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) { if (config->smart_gaps) { struct sway_seat *seat = input_manager_get_default_seat(input_manager); struct sway_container *focus = - seat_get_focus_inactive_view(seat, &ws->node); + seat_get_focus_inactive_tiling(seat, ws); + if (focus && !focus->view) { + focus = seat_get_focus_inactive_view(seat, &focus->node); + } if (focus && focus->view && view_is_only_visible(focus->view)) { return; } |