diff --git a/awesomerc.lua.in b/awesomerc.lua.in index cc43e9ff..2efabc8a 100644 --- a/awesomerc.lua.in +++ b/awesomerc.lua.in @@ -123,7 +123,13 @@ mytaglist.buttons = { button({ }, 1, awful.tag.viewonly), button({ }, 4, awful.tag.viewnext), button({ }, 5, awful.tag.viewprev) } mytasklist = {} -mytasklist.buttons = { button({ }, 1, function (c) client.focus = c; c:raise() end), +mytasklist.buttons = { button({ }, 1, function (c) + if not c:isvisible() then + awful.tag.viewonly(c:tags()[1]) + end + client.focus = c + c:raise() + end), button({ }, 3, function () if instance then instance:hide() end instance = awful.menu.clients({ width=250 }) end), button({ }, 4, function () awful.client.focus.byidx(1) end), button({ }, 5, function () awful.client.focus.byidx(-1) end) }