Hi, I always wondered why the clients menu (default rightclick on the tasklist) fires up a menu every time, so i could open it hundred time. I guess nobody wants that ;)
Patch attached. Regards and Happy 2k9, Leon Winter
>From 6f0949e55468d3fb13296bcf603f4477cf3116b1 Mon Sep 17 00:00:00 2001 From: Leon Winter <[email protected]> Date: Thu, 8 Jan 2009 13:59:19 +0100 Subject: [PATCH] awesomerc: open clients menu only once --- awesomerc.lua.in | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/awesomerc.lua.in b/awesomerc.lua.in index 6b85b54..765c445 100644 --- a/awesomerc.lua.in +++ b/awesomerc.lua.in @@ -123,7 +123,7 @@ mytaglist.buttons = { button({ }, 1, awful.tag.viewonly), button({ }, 5, awful.tag.viewprev) } mytasklist = {} mytasklist.buttons = { button({ }, 1, function (c) client.focus = c; c:raise() end), - button({ }, 3, function () awful.menu.clients({ width=250 }) 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) } -- 1.5.6.5
