diff options
author | Adrian C. (anrxc) <anrxc@sysphere.org> | 2009-11-26 23:41:34 +0100 |
---|---|---|
committer | Adrian C. (anrxc) <anrxc@sysphere.org> | 2009-11-26 23:41:34 +0100 |
commit | 5bed197f0116581410cda2da850a1001a3e0ef25 (patch) | |
tree | 3b8f1e74249c122a04454c58d7c46beaddc48655 /scratchpad.lua | |
parent | 203d6e5c67a68ac75efa92de2b0b3d86e177ca5e (diff) | |
download | awesome-configs-5bed197f0116581410cda2da850a1001a3e0ef25.tar.xz |
rc.lua: upgraded to awesome 3.4.2
Diffstat (limited to 'scratchpad.lua')
-rw-r--r-- | scratchpad.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scratchpad.lua b/scratchpad.lua index b5daca9..72d546d 100644 --- a/scratchpad.lua +++ b/scratchpad.lua @@ -16,9 +16,9 @@ -- Parameters: -- c - Client to scratch or un-scratch -- width - Width in absolute pixels, or width percentage --- when < 1 (0.50 (50% of the screen) by default) +-- when <= 1 (0.50 (50% of the screen) by default) -- height - Height in absolute pixels, or height percentage --- when < 1 (0.50 (50% of the screen) by default) +-- when <= 1 (0.50 (50% of the screen) by default) -- sticky - Visible on all tags, false by default -- screen - Screen (optional), mouse.screen by default --------------------------------------------------------------- @@ -51,8 +51,8 @@ function set(c, width, height, sticky, screen) -- Scratchpad geometry and placement local screengeom = capi.screen[screen].workarea - if width < 1 then width = screengeom.width * width end - if height < 1 then height = screengeom.height * height end + if width <= 1 then width = screengeom.width * width end + if height <= 1 then height = screengeom.height * height end c:geometry({ -- Client is always centered on screen x = screengeom.x + (screengeom.width - width) / 2, |