From 5bed197f0116581410cda2da850a1001a3e0ef25 Mon Sep 17 00:00:00 2001 From: "Adrian C. (anrxc)" Date: Thu, 26 Nov 2009 23:41:34 +0100 Subject: rc.lua: upgraded to awesome 3.4.2 --- scratchpad.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'scratchpad.lua') 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, -- cgit v1.2.3