aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2017-04-18 17:57:07 -0400
committerFurkan Sahin <furkan-dev@proton.me>2017-04-18 17:57:07 -0400
commit8bd28a62666a9a5891620a5e9b60d5a8a5f774b0 (patch)
tree6a94bb91f07d0e190bb73ba06b3f46d9e197f284
parent56ed5beddb10c5b15f07d48ee5b273c312abeabd (diff)
parentdf54c6737d0cb86147904fc95bca130ad38c154f (diff)
Merge pull request #1181 from wasamasa/bugfix-initial-scratchpad-size0.13-rc1
Use i3's dimensions for initial scratchpad views
-rw-r--r--sway/commands/scratchpad.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/commands/scratchpad.c b/sway/commands/scratchpad.c
index d5e888b8..dec32f51 100644
--- a/sway/commands/scratchpad.c
+++ b/sway/commands/scratchpad.c
@@ -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;
}