Explorar o código

Fix error when something else maximizes a window

Andrew Swistak %!s(int64=7) %!d(string=hai) anos
pai
achega
4e79e395a0
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      config/awesome/rc.lua

+ 5 - 1
config/awesome/rc.lua

@@ -298,6 +298,10 @@ globalkeys = awful.util.table.join(
 
 clientkeys = awful.util.table.join(
   awful.key({ s_mod,           }, "f",      function(c)
+                                              if c.wasontop == nil then
+                                                c.wasontop = false
+                                              end
+
                                               if not c.fullscreen then
                                                 c.wasontop = c.ontop
                                               end
@@ -312,7 +316,7 @@ clientkeys = awful.util.table.join(
   awful.key({ s_mod, "Control" }, "Return", function(c) c:swap(awful.client.getmaster()) end),
   awful.key({ s_mod,           }, "i",      function(c) awful.client.movetoscreen(c, c.screen.index-1) end ),
   awful.key({ s_mod,           }, "o",      function(c) awful.client.movetoscreen(c, c.screen.index+1) end ),
-  awful.key({ s_mod,           }, "t",      function(c) c.ontop = not c.ontop            end),
+  awful.key({ s_mod,           }, "t",      function(c) c.ontop = not c.ontop end),
   awful.key({ s_mod,           }, "n",      function(c)
                                               -- The client currently has the input focus, so it cannot be
                                               -- minimized, since minimized clients can't have the focus.