From 56613079822499690f3fa59c00209268d4aa0152 Mon Sep 17 00:00:00 2001 From: "Adrian C. (anrxc)" Date: Fri, 29 Jan 2010 21:08:39 +0100 Subject: scratchpad: cleanup property application --- scratchpad.lua | 10 +++++----- teardrop.lua | 2 +- 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 -- cgit v1.2.3