From 0c2cce8f14b0df3c755c429faf81ff32750ee160 Mon Sep 17 00:00:00 2001 From: "Adrian C. (anrxc)" Date: Sun, 14 Mar 2010 22:05:15 +0100 Subject: scratch: function arguments are already local --- scratch/pad.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'scratch/pad.lua') 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 -- cgit v1.2.3