From 4047bb6e711e57551c395cbb8b59b80b96005bab Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Tue, 27 May 2008 21:36:58 +0200 Subject: [PATCH] [awesomerc] Only raise on focus with keyboard Signed-off-by: Julien Danjou --- awesomerc.lua.in | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/awesomerc.lua.in b/awesomerc.lua.in index cba1b389..9960b638 100644 --- a/awesomerc.lua.in +++ b/awesomerc.lua.in @@ -149,8 +149,8 @@ awesome.key({ modkey, "Shift" }, "q", awesome.quit) -- Client manipulation awesome.key({ modkey, "Shift" }, "c", function () client.focus_get():kill() end) -awesome.key({ modkey }, "j", function () awful.client.focus(1) end) -awesome.key({ modkey }, "k", function () awful.client.focus(-1) end) +awesome.key({ modkey }, "j", function () awful.client.focus(1); client.focus_get():raise() end) +awesome.key({ modkey }, "k", function () awful.client.focus(-1); client.focus_get():raise() end) awesome.key({ modkey, "Shift" }, "j", function () awful.client.swap(1) end) awesome.key({ modkey, "Shift" }, "k", function () awful.client.swap(-1) end) awesome.key({ modkey, "Control" }, "j", function () awful.screen.focus(1) end) @@ -171,7 +171,6 @@ awesome.key({ modkey, "Shift" }, "space", function () awful.layout.inc(layouts, -- {{{ Hooks -- Hook function to execute when focusing a client. function hook_focus(c) - c:raise() c:border_set({ width = 1, color = "white" }) end