diff options
| author | Brian Ashworth <bosrsf04@gmail.com> | 2018-10-08 18:49:55 -0400 | 
|---|---|---|
| committer | Brian Ashworth <bosrsf04@gmail.com> | 2018-10-08 18:50:32 -0400 | 
| commit | 5e9c61ac23fff1185100a19b36803380441b3e81 (patch) | |
| tree | b2531832da7f09ea7d9deda3182a63206146e76c /sway/tree | |
| parent | 4bebee620f1160d6531d9aaa9b528029f75cecf4 (diff) | |
| download | sway-5e9c61ac23fff1185100a19b36803380441b3e81.tar.xz | |
Only consider tiling views for gaps outer
Diffstat (limited to 'sway/tree')
| -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;  		} | 
