awesomerc: raise client when focused with mouse buttons 4 and 5

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Damien Leone 2009-02-21 00:52:22 +01:00 committed by Julien Danjou
parent baab41fb1f
commit 84b75524ee
1 changed files with 8 additions and 2 deletions

View File

@ -131,8 +131,14 @@ mytasklist.buttons = { button({ }, 1, function (c)
c:raise() c:raise()
end), end),
button({ }, 3, function () if instance then instance:hide() end instance = 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({ }, 4, function ()
button({ }, 5, function () awful.client.focus.byidx(-1) end) } awful.client.focus.byidx(1)
if client.focus then client.focus:raise() end
end),
button({ }, 5, function ()
awful.client.focus.byidx(-1)
if client.focus then client.focus:raise() end
end) }
for s = 1, screen.count() do for s = 1, screen.count() do
-- Create a promptbox for each screen -- Create a promptbox for each screen