summaryrefslogtreecommitdiff
path: root/scratchpad.lua
diff options
context:
space:
mode:
Diffstat (limited to 'scratchpad.lua')
-rw-r--r--scratchpad.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/scratchpad.lua b/scratchpad.lua
index 3106b14..47576d3 100644
--- a/scratchpad.lua
+++ b/scratchpad.lua
@@ -94,9 +94,11 @@ function set(c, width, height, sticky, screen)
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
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
awful.client.floating.toggle(oc)
scratch["pad"][screen] = c
setscratch(c)