Improvements to gaps

This commit is contained in:
Drew DeVault 2015-08-18 18:44:50 -04:00
parent 446d593b4c
commit cf916bbf6f
4 changed files with 24 additions and 21 deletions

View file

@ -168,7 +168,11 @@ static bool handle_view_created(wlc_handle handle) {
}
if (newview) {
set_focused_container(newview);
arrange_windows(newview->parent, -1, -1);
swayc_t *output = newview->parent;
while (output && output->type != C_OUTPUT) {
output = output->parent;
}
arrange_windows(output, -1, -1);
}
return true;
}