]> Dogcows Code - chaz/openbox/commitdiff
dont allow resizing < 1 (based on increments)
authorDana Jansens <danakj@orodu.net>
Thu, 16 Jan 2003 04:10:12 +0000 (04:10 +0000)
committerDana Jansens <danakj@orodu.net>
Thu, 16 Jan 2003 04:10:12 +0000 (04:10 +0000)
src/client.cc

index df519050fdff001086104e0cdeb003039885f1fc..a9fbdeb70790a4b6bf7c9871a73776d5eb009bd3 100644 (file)
@@ -968,6 +968,10 @@ void Client::resize(Corner anchor, int w, int h, int x, int y)
   w /= _size_inc.x();
   h /= _size_inc.y();
 
+  // you cannot resize to nothing
+  if (w < 1) w = 1;
+  if (h < 1) h = 1;
+  
   // store the logical size
   _logical_size.setPoint(w, h);
 
This page took 0.028117 seconds and 4 git commands to generate.