diff options
author | Adrian C. (anrxc) <anrxc@sysphere.org> | 2009-09-10 20:49:00 +0200 |
---|---|---|
committer | Adrian C. (anrxc) <anrxc@sysphere.org> | 2009-09-10 20:49:00 +0200 |
commit | efb377afddec303ba0e932d2adb8882357b71345 (patch) | |
tree | d489b823102923114735bf1edc5011926c064611 | |
parent | 8890a5c69bd327701b4d4de109b6f91f3f739c38 (diff) | |
download | awesome-configs-efb377afddec303ba0e932d2adb8882357b71345.tar.xz |
teardrop: untag when hidden
-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 |