summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian C. (anrxc) <anrxc@sysphere.org>2010-01-29 21:08:39 +0100
committerAdrian C. (anrxc) <anrxc@sysphere.org>2010-01-29 21:08:39 +0100
commit56613079822499690f3fa59c00209268d4aa0152 (patch)
tree0504f21f4c840f98990746dc751ad5c694bb188c
parent8302410a52afbd4fcb3cc311b5492cfc44bb9407 (diff)
downloadawesome-configs-56613079822499690f3fa59c00209268d4aa0152.tar.xz
scratchpad: cleanup property application
-rw-r--r--scratchpad.lua10
-rw-r--r--teardrop.lua2
2 files changed, 6 insertions, 6 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
diff --git a/teardrop.lua b/teardrop.lua
index eb15bff..afcff28 100644
--- a/teardrop.lua
+++ b/teardrop.lua
@@ -103,7 +103,7 @@ function toggle(prog, vert, horiz, width, height, sticky, screen)
c = dropdown[prog][screen]
-- Switch the client to the current workspace
- if c:isvisible() == false then c.hidden = true;
+ if c:isvisible() == false then c.hidden = true
awful.client.movetotag(awful.tag.selected(screen), c)
end