From 76b081622b7848bac37a922ef60dd0794c72d8b8 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Fri, 13 Feb 2009 11:31:20 +0100 Subject: [PATCH] awesomerc: enhance button 1 on tasklist (FS#450) This will make it work with alltags label function. Signed-off-by: Julien Danjou --- awesomerc.lua.in | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/awesomerc.lua.in b/awesomerc.lua.in index cc43e9ff3..2efabc8a2 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) }