summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2017-04-18 17:57:07 -0400
committerLibravatar GitHub <noreply@github.com>2017-04-18 17:57:07 -0400
commit94ad169eb6c2806c0f9a119b2c726d0f16cb56b0 (patch)
tree6a94bb91f07d0e190bb73ba06b3f46d9e197f284
parentMerge pull request #1178 from 4e554c4c/fork (diff)
parentUse i3's dimensions for initial scratchpad views (diff)
downloadsway-94ad169eb6c2806c0f9a119b2c726d0f16cb56b0.tar.gz
sway-94ad169eb6c2806c0f9a119b2c726d0f16cb56b0.tar.zst
sway-94ad169eb6c2806c0f9a119b2c726d0f16cb56b0.zip
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() {
16 wlc_view_set_output(view->handle, swayc_active_output()->handle); 16 wlc_view_set_output(view->handle, swayc_active_output()->handle);
17 } 17 }
18 if (!view->is_floating) { 18 if (!view->is_floating) {
19 view->width = swayc_active_workspace()->width/2; 19 view->width = swayc_active_workspace()->width * 0.5;
20 view->height = swayc_active_workspace()->height/2; 20 view->height = swayc_active_workspace()->height * 0.75;
21 view->x = (swayc_active_workspace()->width - view->width)/2; 21 view->x = (swayc_active_workspace()->width - view->width)/2;
22 view->y = (swayc_active_workspace()->height - view->height)/2; 22 view->y = (swayc_active_workspace()->height - view->height)/2;
23 } 23 }