diff --git a/awesomerc.lua.in b/awesomerc.lua.in index ea99e167..650df816 100644 --- a/awesomerc.lua.in +++ b/awesomerc.lua.in @@ -91,11 +91,17 @@ mytaglist.buttons = awful.util.table.join( mytasklist = {} mytasklist.buttons = awful.util.table.join( awful.button({ }, 1, function (c) - if not c:isvisible() then - awful.tag.viewonly(c:tags()[1]) + if c == client.focus then + c.minimized = true + else + if not c:isvisible() then + awful.tag.viewonly(c:tags()[1]) + end + -- This will also un-minimize + -- the client, if needed + client.focus = c + c:raise() end - client.focus = c - c:raise() end), awful.button({ }, 3, function () if instance then