summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian C. (anrxc) <anrxc@sysphere.org>2009-10-10 23:57:23 +0200
committerAdrian C. (anrxc) <anrxc@sysphere.org>2009-10-10 23:57:23 +0200
commitf06d9a33a743fc22e53e8a85d008712be73f6219 (patch)
treeaf21a83f8652b38ca78aa20805ef0adc9c22b46d
parent98f510df14d32216eedcaf26e238cdc78f1faedd (diff)
downloadawesome-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.lua18
1 files changed, 8 insertions, 10 deletions
diff --git a/rc.lua b/rc.lua
index f78796f..35c6a00 100644
--- a/rc.lua
+++ b/rc.lua
@@ -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),