]> Dogcows Code - chaz/openbox/commitdiff
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 1cbb8605220e3ec7dcba84c4967bdd9fd891cc7f..95c4987744059da73eaacf16b8aa9c750ed6fcae 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)
This page took 0.025693 seconds and 4 git commands to generate.