Unminimize before checking for tag switch (FS#1020)

For a minimized client, c:isvisible() is always false which is not what we want
here. So instead, unminimize the client before checking if it's visible.

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2012-07-09 21:26:00 +02:00
parent 10fa808a5a
commit d2f06a196b
1 changed files with 3 additions and 0 deletions

View File

@ -122,6 +122,9 @@ mytasklist.buttons = awful.util.table.join(
if c == client.focus then if c == client.focus then
c.minimized = true c.minimized = true
else else
-- Without this, the following
-- :isvisible() makes no sense
c.minimized = false
if not c:isvisible() then if not c:isvisible() then
awful.tag.viewonly(c:tags()[1]) awful.tag.viewonly(c:tags()[1])
end end