Merge pull request #1181 from wasamasa/bugfix-initial-scratchpad-size

Use i3's dimensions for initial scratchpad views
This commit is contained in:
Drew DeVault 2017-04-18 17:57:07 -04:00 committed by GitHub
commit 94ad169eb6

View file

@ -16,8 +16,8 @@ static swayc_t *fetch_view_from_scratchpad() {
wlc_view_set_output(view->handle, swayc_active_output()->handle);
}
if (!view->is_floating) {
view->width = swayc_active_workspace()->width/2;
view->height = swayc_active_workspace()->height/2;
view->width = swayc_active_workspace()->width * 0.5;
view->height = swayc_active_workspace()->height * 0.75;
view->x = (swayc_active_workspace()->width - view->width)/2;
view->y = (swayc_active_workspace()->height - view->height)/2;
}