From 2e2d60a1f994b6c701b23c72b4e10ad139a352a4 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Wed, 13 May 2015 22:39:38 +0200 Subject: [PATCH] client.focus.byidx: handle raising in the function itself --- awesomerc.lua | 4 ---- lib/awful/client.lua | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/awesomerc.lua b/awesomerc.lua index dff4265e..d8b90042 100755 --- a/awesomerc.lua +++ b/awesomerc.lua @@ -161,11 +161,9 @@ mytasklist.buttons = awful.util.table.join( end), awful.button({ }, 4, function () awful.client.focus.byidx(1) - if client.focus then client.focus:raise() end end), awful.button({ }, 5, function () awful.client.focus.byidx(-1) - if client.focus then client.focus:raise() end end)) for s = 1, screen.count() do @@ -229,12 +227,10 @@ globalkeys = awful.util.table.join( awful.key({ modkey, }, "j", function () awful.client.focus.byidx( 1) - if client.focus then client.focus:raise() end end), awful.key({ modkey, }, "k", function () awful.client.focus.byidx(-1) - if client.focus then client.focus:raise() end end), awful.key({ modkey, }, "w", function () mymainmenu:show() end), diff --git a/lib/awful/client.lua b/lib/awful/client.lua index b0914788..7fc60a03 100644 --- a/lib/awful/client.lua +++ b/lib/awful/client.lua @@ -348,7 +348,7 @@ end function client.focus.byidx(i, c) local target = client.next(i, c) if target then - target:emit_signal("request::activate", "client.focus.byidx", false) + target:emit_signal("request::activate", "client.focus.byidx", true) end end