]> Dogcows Code - chaz/openbox/blobdiff - src/client.cc
dont allow resizing < 1 (based on increments)
[chaz/openbox] / 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.019646 seconds and 4 git commands to generate.