tag.withcurrent(): Also tag sticky clients (FS#934)

Tagging sticky clients shouldn't hurt anything, but it helps a lot if the client
later becomes unsticky. I'd have no tags in that case.

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2011-10-19 16:34:15 +02:00
parent bf76b3842b
commit ed022e6764
1 changed files with 1 additions and 1 deletions

View File

@ -463,7 +463,7 @@ end
-- @param c The client to tag.
-- @param startup Optional: don't do anything if true.
function withcurrent(c, startup)
if startup ~= true and c.sticky == false then
if startup ~= true then
if #c:tags() == 0 then
c:tags(selectedlist(c.screen))
end