[awesomerc] Only raise on focus with keyboard

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-05-27 21:36:58 +02:00
parent e890297617
commit 4047bb6e71
1 changed files with 2 additions and 3 deletions

View File

@ -149,8 +149,8 @@ awesome.key({ modkey, "Shift" }, "q", awesome.quit)
-- Client manipulation -- Client manipulation
awesome.key({ modkey, "Shift" }, "c", function () client.focus_get():kill() end) awesome.key({ modkey, "Shift" }, "c", function () client.focus_get():kill() end)
awesome.key({ modkey }, "j", 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) 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" }, "j", function () awful.client.swap(1) end)
awesome.key({ modkey, "Shift" }, "k", 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) 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 -- {{{ Hooks
-- Hook function to execute when focusing a client. -- Hook function to execute when focusing a client.
function hook_focus(c) function hook_focus(c)
c:raise()
c:border_set({ width = 1, color = "white" }) c:border_set({ width = 1, color = "white" })
end end