From 84b75524eed4f5bf201ac2631ff2452cf0d73a97 Mon Sep 17 00:00:00 2001 From: Damien Leone Date: Sat, 21 Feb 2009 00:52:22 +0100 Subject: [PATCH] awesomerc: raise client when focused with mouse buttons 4 and 5 Signed-off-by: Julien Danjou --- awesomerc.lua.in | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/awesomerc.lua.in b/awesomerc.lua.in index 6161061b1..17f06c76d 100644 --- a/awesomerc.lua.in +++ b/awesomerc.lua.in @@ -131,8 +131,14 @@ mytasklist.buttons = { button({ }, 1, function (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) } + button({ }, 4, function () + 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 -- Create a promptbox for each screen