Functionality for deleting a tag using awful.tag.
commit402870687b017714f4e8440e9fa9c7d4b77639f5
authorIgnas Anikevicius (gns_ank) <anikevicius@gmail.com>
Mon, 2 Aug 2010 18:25:30 +0000 (2 20:25 +0200)
committerUli Schlachter <psychon@znc.in>
Mon, 2 Aug 2010 20:06:17 +0000 (2 22:06 +0200)
treef1a70ee48fa5514c1a396b3a8458c852d143393f
parentcc33cd17a0cf1f90634df1f12b0938ef9ccda58d
Functionality for deleting a tag using awful.tag.

tag.delete(t, fb):
    Delete tags if certain criteria are met:
        - There are no clients assigned exclusively to this tag.
        - Stickied clients have somewhere to go, 'fb' the fallback tag

    If after deleting there is no tag selected then try and
    history.restore() or select the first tag on the screen.

    Return true if successful and nil otherwise.

Signed-off-by: Perry Hargrave <perry.hargrave@gmail.com>
Signed-off-by: Ignas Anikevicius <anikevicius@gmail.com>
Signed-off-by: Uli Schlachter <psychon@znc.in>
lib/awful/tag.lua.in