]> Dogcows Code - chaz/openbox/commitdiff
dont show a handle if it cant be resized at all
authorDana Jansens <danakj@orodu.net>
Wed, 29 Jan 2003 22:41:43 +0000 (22:41 +0000)
committerDana Jansens <danakj@orodu.net>
Wed, 29 Jan 2003 22:41:43 +0000 (22:41 +0000)
src/client.cc

index 4c7de05900a626b2975578feb30cc2093f86d516..e55f681f58a7edaba152905dd4f23d8908f3fe30 100644 (file)
@@ -220,7 +220,7 @@ void Client::setupDecorAndFunctions()
     _functions |= Func_Close;
   }
 
-  if (_min_size.x() > _max_size.x() || _min_size.y() > _max_size.y()) {
+  if (!(_min_size.x() < _max_size.x() || _min_size.y() < _max_size.y())) {
     _decorations &= ~(Decor_Maximize | Decor_Handle);
     _functions &= ~(Func_Resize | Func_Maximize);
   }
This page took 0.028583 seconds and 4 git commands to generate.