awesomerc: raise client when focused with mouse buttons 4 and 5
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
baab41fb1f
commit
84b75524ee
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue