diff options
Diffstat (limited to 'teardrop.lua')
-rw-r--r-- | teardrop.lua | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/teardrop.lua b/teardrop.lua index 6fcc1d6..efa05ac 100644 --- a/teardrop.lua +++ b/teardrop.lua @@ -9,7 +9,8 @@ -- * Startup notification disabled -- * Slides in from the bottom of the screen by default -- * Ported to awesome 3.4 (signals, new properties...) --- +-- * Does not show up on tags when hidden +-- -- Licensed under the WTFPL version 2 -- * http://sam.zoy.org/wtfpl/COPYING --------------------------------------------------------------------------- @@ -54,6 +55,14 @@ function toggle(prog, edge, height, screen) if height == nil then height = 0.25 end if edge == nil then edge = 0 end + local function untag(c) + local tags = c:tags() + for i, v in pairs(tags) do + tags[i] = nil + end + c:tags(tags) + end + if not dropdown[prog] then -- Create table dropdown[prog] = {} @@ -136,6 +145,7 @@ function toggle(prog, edge, height, screen) capi.client.focus = c else c.hidden = true + untag(c) end end end |