diff options
author | Adrian C. (anrxc) <anrxc@sysphere.org> | 2009-09-20 12:48:21 +0200 |
---|---|---|
committer | Adrian C. (anrxc) <anrxc@sysphere.org> | 2009-09-20 12:48:21 +0200 |
commit | feafb9ced02f0290118e4d566e74eb50cd66276e (patch) | |
tree | bd2bb828474ed8e887b9649696530de78697bdcd | |
parent | f267fabe0ef7ed58df4f0870711c2dd37283cedc (diff) | |
download | awesome-configs-feafb9ced02f0290118e4d566e74eb50cd66276e.tar.xz |
rc.lua: revert 3a5b9d5 breaks floating layout
-rw-r--r-- | rc.lua | 33 |
1 files changed, 23 insertions, 10 deletions
@@ -303,7 +303,7 @@ datewidget:buttons(awful.util.table.join( -- {{{ System tray systray = widget({ type = "systray" }) -- }}} --- }}}n +-- }}} -- {{{ Wibox initialisation wibox = {} @@ -380,7 +380,7 @@ root.buttons(awful.util.table.join( -- Client mouse bindings clientbuttons = awful.util.table.join( - awful.button({ }, 1, function (c) client.focus = c end), + awful.button({ }, 1, function (c) client.focus = c; c:raise() end), awful.button({ modkey }, 1, awful.mouse.client.move), awful.button({ modkey }, 3, awful.mouse.client.resize) ) @@ -502,13 +502,27 @@ globalkeys = awful.util.table.join( awful.key({ modkey }, "p", function () awful.screen.focus_relative(1) end), awful.key({ modkey }, "s", function () scratchpad.toggle() end), awful.key({ altkey }, "Tab", awful.client.urgent.jumpto), - awful.key({ modkey }, "Tab", function () awful.client.focus.history.previous() end), - awful.key({ modkey }, "j", function () awful.client.focus.byidx(1) end), - awful.key({ modkey }, "k", function () awful.client.focus.byidx(-1) end), - awful.key({ modkey }, "#48", function () awful.client.focus.bydirection("down") end), - awful.key({ modkey }, "#34", function () awful.client.focus.bydirection("up") end), - awful.key({ modkey }, "#47", function () awful.client.focus.bydirection("left") end), - awful.key({ modkey }, "#51", function () awful.client.focus.bydirection("right") end), + awful.key({ modkey }, "Tab", function () awful.client.focus.history.previous() + if client.focus then client.focus:raise() end + end), + 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 }, "#48", function () awful.client.focus.bydirection("down") + if client.focus then client.focus:raise() end + end), + awful.key({ modkey }, "#34", function () awful.client.focus.bydirection("up") + if client.focus then client.focus:raise() end + end), + awful.key({ modkey }, "#47", function () awful.client.focus.bydirection("left") + if client.focus then client.focus:raise() end + end), + awful.key({ modkey }, "#51", function () awful.client.focus.bydirection("right") + if client.focus then client.focus:raise() end + end), awful.key({ modkey, "Shift" }, "j", function () awful.client.swap.byidx(1) end), awful.key({ modkey, "Shift" }, "k", function () awful.client.swap.byidx(-1) end), awful.key({ modkey, "Shift" }, "#48", function () awful.client.swap.bydirection("down") end), @@ -672,7 +686,6 @@ end) -- }}} -- {{{ Focus signal functions -client.add_signal("focus", function (c) c:raise() end) client.add_signal("focus", function (c) c.border_color = beautiful.border_focus end) client.add_signal("unfocus", function (c) c.border_color = beautiful.border_normal end) -- }}} |