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:
parent
10fa808a5a
commit
d2f06a196b
|
@ -122,6 +122,9 @@ mytasklist.buttons = awful.util.table.join(
|
|||
if c == client.focus then
|
||||
c.minimized = true
|
||||
else
|
||||
-- Without this, the following
|
||||
-- :isvisible() makes no sense
|
||||
c.minimized = false
|
||||
if not c:isvisible() then
|
||||
awful.tag.viewonly(c:tags()[1])
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue