diff --git a/awesomerc.lua.in b/awesomerc.lua.in index 8d1a6633..fcb54f97 100644 --- a/awesomerc.lua.in +++ b/awesomerc.lua.in @@ -128,7 +128,6 @@ mytasklist.buttons = { button({ }, 1, function (c) awful.tag.viewonly(c:tags()[1]) end client.focus = 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), @@ -181,16 +180,8 @@ globalkeys = key({ modkey, }, "Right", awful.tag.viewnext ), key({ modkey, }, "Escape", awful.tag.history.restore), - key({ modkey, }, "j", - function () - awful.client.focus.byidx( 1) - if client.focus then client.focus:raise() end - end), - key({ modkey, }, "k", - function () - awful.client.focus.byidx(-1) - if client.focus then client.focus:raise() end - end), + key({ modkey, }, "j", function () awful.client.focus.byidx( 1) end), + key({ modkey, }, "k", function () awful.client.focus.byidx(-1) end), -- Layout manipulation key({ modkey, "Shift" }, "j", function () awful.client.swap.byidx( 1) end), @@ -198,13 +189,7 @@ globalkeys = key({ modkey, "Control" }, "j", function () awful.screen.focus( 1) end), key({ modkey, "Control" }, "k", function () awful.screen.focus(-1) end), key({ modkey, }, "u", awful.client.urgent.jumpto), - key({ modkey, }, "Tab", - function () - awful.client.focus.history.previous() - if client.focus then - client.focus:raise() - end - end), + key({ modkey, }, "Tab", function () awful.client.focus.history.previous() end), -- Standard program key({ modkey, }, "Return", function () awful.util.spawn(terminal) end), @@ -317,6 +302,7 @@ awful.hooks.focus.register(function (c) if not awful.client.ismarked(c) then c.border_color = beautiful.border_focus end + c:raise() end) -- Hook function to execute when unfocusing a client. @@ -360,7 +346,7 @@ awful.hooks.manage.register(function (c, startup) end -- Add mouse bindings c:buttons({ - button({ }, 1, function (c) client.focus = c; c:raise() end), + button({ }, 1, function (c) client.focus = c end), button({ modkey }, 1, awful.mouse.client.move), button({ modkey }, 3, awful.mouse.client.resize) })