From 38840c911b37417949c69d4e788c458f20f9f2fa Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sun, 21 Jun 2015 23:26:08 +0200 Subject: [PATCH] default config: raise with "maximize" and "fullscreen" After using sloppy mouse focus to select a client (which does not raise it already), maximizing/fullscreening it should then raise it. This also uses the new shortcut `c.maximized = not c.maximized`. Closes https://github.com/awesomeWM/awesome/pull/270 --- awesomerc.lua | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/awesomerc.lua b/awesomerc.lua index 58df8fd5..dff4265e 100755 --- a/awesomerc.lua +++ b/awesomerc.lua @@ -291,7 +291,11 @@ 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, }, "f", + function (c) + c.fullscreen = not c.fullscreen + c:raise() + end), awful.key({ modkey, "Shift" }, "c", function (c) c:kill() end), awful.key({ modkey, "Control" }, "space", awful.client.floating.toggle ), awful.key({ modkey, "Control" }, "Return", function (c) c:swap(awful.client.getmaster()) end), @@ -305,8 +309,8 @@ clientkeys = awful.util.table.join( end), awful.key({ modkey, }, "m", function (c) - c.maximized_horizontal = not c.maximized_horizontal - c.maximized_vertical = not c.maximized_vertical + c.maximized = not c.maximized + c:raise() end) )