Merge pull request #2803 from RedSoxFan/fix-2802

Only consider tiling views for gaps outer
This commit is contained in:
Drew DeVault 2018-10-09 15:37:42 +02:00 committed by GitHub
commit 53164c4aa2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}