This commit is contained in:
Luca CPZ 2018-09-19 11:07:46 +02:00
parent a013123527
commit 1619d26ab9
1 changed files with 12 additions and 1 deletions

View File

@ -144,7 +144,18 @@ awful.util.tasklist_buttons = my_table.join(
if c == client.focus then
c.minimized = true
else
c:emit_signal("request::activate", "tasklist", {raise = true})
--c:emit_signal("request::activate", "tasklist", {raise = true})<Paste>
-- Without this, the following
-- :isvisible() makes no sense
c.minimized = false
if not c:isvisible() and c.first_tag then
c.first_tag:view_only()
end
-- This will also un-minimize
-- the client, if needed
client.focus = c
c:raise()
end
end),
awful.button({ }, 3, function ()