diff options
author | Adrian C. (anrxc) <anrxc@sysphere.org> | 2010-03-14 22:05:15 +0100 |
---|---|---|
committer | Adrian C. (anrxc) <anrxc@sysphere.org> | 2010-03-14 22:05:15 +0100 |
commit | 0c2cce8f14b0df3c755c429faf81ff32750ee160 (patch) | |
tree | cf51b5d8f573ded2285540b95db5f77a4448dcee /scratch | |
parent | 7fbce6e22656d145dc1bf5f72a36308ce4811530 (diff) | |
download | awesome-configs-0c2cce8f14b0df3c755c429faf81ff32750ee160.tar.xz |
scratch: function arguments are already local
Diffstat (limited to 'scratch')
-rw-r--r-- | scratch/drop.lua | 12 | ||||
-rw-r--r-- | scratch/pad.lua | 10 |
2 files changed, 11 insertions, 11 deletions
diff --git a/scratch/drop.lua b/scratch/drop.lua index f5cff97..6a38c46 100644 --- a/scratch/drop.lua +++ b/scratch/drop.lua @@ -41,12 +41,12 @@ local dropdown = {} -- Create a new window for the drop-down application when it doesn't -- exist, or toggle between hidden and visible states when it does function toggle(prog, vert, horiz, width, height, sticky, screen) - local vert = vert or "top" - local horiz = horiz or "center" - local width = width or 1 - local height = height or 0.25 - local sticky = sticky or false - local screen = screen or capi.mouse.screen + vert = vert or "top" + horiz = horiz or "center" + width = width or 1 + height = height or 0.25 + sticky = sticky or false + screen = screen or capi.mouse.screen if not dropdown[prog] then dropdown[prog] = {} diff --git a/scratch/pad.lua b/scratch/pad.lua index a092f13..cdf87e0 100644 --- a/scratch/pad.lua +++ b/scratch/pad.lua @@ -48,10 +48,10 @@ end -- Scratch the focused client, or un-scratch and tile it. If another -- client is already scratched, replace it with the focused client. function set(c, width, height, sticky, screen) - local width = width or 0.50 - local height = height or 0.50 - local sticky = sticky or false - local screen = screen or capi.mouse.screen + width = width or 0.50 + height = height or 0.50 + sticky = sticky or false + screen = screen or capi.mouse.screen local function setscratch(c) -- Scratchpad is floating and has no titlebar @@ -103,7 +103,7 @@ end -- Move the scratchpad to the current workspace, focus and raise it -- when it's hidden, or hide it when it's visible. function toggle(screen) - local screen = screen or capi.mouse.screen + screen = screen or capi.mouse.screen -- Check if we have a client on storage, if scratchpad.pad and |