diff options
author | Peter Palfrader <peter@palfrader.org> | 2017-03-16 08:10:21 +0100 |
---|---|---|
committer | Peter Palfrader <peter@palfrader.org> | 2017-03-16 08:10:21 +0100 |
commit | 77bdd6024a2765c1bfd3ecac7bddb907da63a174 (patch) | |
tree | cdea57081b1b5b45804630e0bc70ebaa21b443f8 | |
parent | 5a7be9c779b9ae12d3f874f87a72f964ec1dc64e (diff) |
unmaximuze when disabling floating
-rw-r--r-- | config/awesome/rc.lua | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/config/awesome/rc.lua b/config/awesome/rc.lua index 96a2517..cc1ce49 100644 --- a/config/awesome/rc.lua +++ b/config/awesome/rc.lua @@ -410,7 +410,14 @@ globalkeys = awful.util.table.join( clientkeys = awful.util.table.join( -- awful.key({ modkey, }, "f", function (c) c.fullscreen = not c.fullscreen end), -- awful.key({ modkey, "Shift" }, "c", function (c) c:kill() end), - awful.key({ modkey, "Shift" }, "space", awful.client.floating.toggle ), + awful.key({ modkey, "Shift" }, "space", + function (c) + awful.client.floating.toggle(c) + if not c.floating then + c.maximized_horizontal = false + c.maximized_vertical = false + end + end), awful.key({ modkey, }, "Return", function (c) c:swap(awful.client.getmaster()) end), awful.key({ modkey, }, "o", function (c) c:move_to_screen() end), awful.key({ modkey, }, "t", function (c) c.ontop = not c.ontop end), |