dont let maximizing occur if the window cant move or resize
authorDana Jansens <danakj@orodu.net>
Mon, 3 Feb 2003 10:50:14 +0000 (10:50 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 3 Feb 2003 10:50:14 +0000 (10:50 +0000)
src/client.cc

index 1cbb860..95c4987 100644 (file)
@@ -300,6 +300,10 @@ void Client::setupDecorAndFunctions()
     }
   }
 
+  // can't maximize without moving/resizing
+  if (!((_functions & Func_Move) && (_functions & Func_Resize)))
+    _functions &= ~Func_Maximize;
+
   // finally, user specified disabled decorations are applied to subtract
   // decorations
   if (_disabled_decorations & Decor_Titlebar)