]> Dogcows Code - chaz/openbox/commitdiff
be paranoid about programs setting 0 resize increments, which results in a divide...
authorMikael Magnusson <mikachu@comhem.se>
Wed, 2 Aug 2006 16:36:29 +0000 (16:36 +0000)
committerMikael Magnusson <mikachu@comhem.se>
Wed, 2 Aug 2006 16:36:29 +0000 (16:36 +0000)
openbox/client.c

index aa7812e63188e8d693c1d0bb01eecc2cd9a77b81..11f2012f474ba09d1208d38025bc53d511417d6a 100644 (file)
@@ -1234,7 +1234,7 @@ void client_update_normal_hints(ObClient *self)
         if (size.flags & PBaseSize)
             SIZE_SET(self->base_size, size.base_width, size.base_height);
     
-        if (size.flags & PResizeInc)
+        if (size.flags & PResizeInc && size.width_inc && size_height_inc)
             SIZE_SET(self->size_inc, size.width_inc, size.height_inc);
     }
 }
This page took 0.02934 seconds and 4 git commands to generate.