diff options
author | Adrian C. (anrxc) <anrxc@sysphere.org> | 2009-10-10 23:57:23 +0200 |
---|---|---|
committer | Adrian C. (anrxc) <anrxc@sysphere.org> | 2009-10-10 23:57:23 +0200 |
commit | f06d9a33a743fc22e53e8a85d008712be73f6219 (patch) | |
tree | af21a83f8652b38ca78aa20805ef0adc9c22b46d | |
parent | 98f510df14d32216eedcaf26e238cdc78f1faedd (diff) | |
download | awesome-configs-f06d9a33a743fc22e53e8a85d008712be73f6219.tar.xz |
rc.lua: workaround for FS#606
Titlebar dissapears when c.fullscreen and client is left below the
wibox. The bug report is ignored and probably won't be fixed... so I'm
handling it my self.
-rw-r--r-- | rc.lua | 18 |
1 files changed, 8 insertions, 10 deletions
@@ -543,14 +543,13 @@ local globalkeys = awful.util.table.join( -- {{{ Client manipulation local clientkeys = awful.util.table.join( awful.key({ modkey }, "b", function () - if wibox[mouse.screen].screen == nil then - wibox[mouse.screen].screen = mouse.screen - else wibox[mouse.screen].screen = nil end + if wibox[mouse.screen].screen == nil + then wibox[mouse.screen].screen = mouse.screen + else wibox[mouse.screen].screen = nil end end), awful.key({ modkey }, "c", function (c) c:kill() end), - awful.key({ modkey }, "f", function (c) - c.fullscreen = not c.fullscreen - c.above = not c.fullscreen + awful.key({ modkey }, "f", function (c) awful.titlebar.remove(c) + c.fullscreen = not c.fullscreen; c.above = not c.fullscreen end), awful.key({ modkey }, "m", function (c) c.maximized_horizontal = not c.maximized_horizontal @@ -571,10 +570,9 @@ local clientkeys = awful.util.table.join( else awful.titlebar.add(c, { modkey = modkey }) end end), awful.key({ modkey, "Control" }, "r", function (c) c:redraw() end), - awful.key({ modkey, "Control" }, "space", function (c) - awful.client.floating.toggle(c) - if awful.client.floating.get(c) then - c.above = true; awful.titlebar.add(c); awful.placement.no_offscreen(c) + awful.key({ modkey, "Control" }, "space", function (c) awful.client.floating.toggle(c) + if awful.client.floating.get(c) + then c.above = true; awful.titlebar.add(c); awful.placement.no_offscreen(c) else c.above = false; awful.titlebar.remove(c) end end), awful.key({ modkey, "Control" }, "Return", function (c) c:swap(awful.client.getmaster()) end), |