diff options
author | Adrian C. (anrxc) <anrxc@sysphere.org> | 2010-01-29 21:08:39 +0100 |
---|---|---|
committer | Adrian C. (anrxc) <anrxc@sysphere.org> | 2010-01-29 21:08:39 +0100 |
commit | 56613079822499690f3fa59c00209268d4aa0152 (patch) | |
tree | 0504f21f4c840f98990746dc751ad5c694bb188c /scratchpad.lua | |
parent | 8302410a52afbd4fcb3cc311b5492cfc44bb9407 (diff) | |
download | awesome-configs-56613079822499690f3fa59c00209268d4aa0152.tar.xz |
scratchpad: cleanup property application
Diffstat (limited to 'scratchpad.lua')
-rw-r--r-- | scratchpad.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/scratchpad.lua b/scratchpad.lua index 3192db5..fa905f5 100644 --- a/scratchpad.lua +++ b/scratchpad.lua @@ -93,12 +93,12 @@ function set(c, width, height, sticky, screen) -- compare it with the focused client if oc == c then -- If it matches then unscratch and clear the table - awful.client.floating.toggle(oc); oc.sticky = false - oc.ontop = false; oc.above = false + awful.client.floating.toggle(oc) + oc.sticky, oc.ontop, oc.above = false, false, false scratch.pad[screen] = nil else -- If they don't match, unscratch and replace it - oc.hidden = false; oc.sticky = false - oc.ontop = false; oc.above = false + oc.hidden, oc.sticky = false, false + oc.ontop, oc.above = false, false awful.client.floating.toggle(oc) scratch.pad[screen] = c setscratch(c) @@ -118,7 +118,7 @@ function toggle(screen) local c = scratch.pad[screen] -- If it's visible on another tag hide it, - if c:isvisible() == false then c.hidden = true; + if c:isvisible() == false then c.hidden = true -- and move it to the current worskpace awful.client.movetotag(awful.tag.selected(screen), c) end |