]> Dogcows Code - chaz/openbox/commitdiff
attempt #2 at better logical size values
authorDana Jansens <danakj@orodu.net>
Wed, 30 Jul 2003 16:13:52 +0000 (16:13 +0000)
committerDana Jansens <danakj@orodu.net>
Wed, 30 Jul 2003 16:13:52 +0000 (16:13 +0000)
openbox/client.c

index 4612bd8625c080214953833ff9c2c745e8b415b9..af445e746941e1c99c9af3655dbc92398c7dd676 100644 (file)
@@ -1791,8 +1791,8 @@ void client_configure_full(ObClient *self, ObCorner anchor,
   
         /* store the logical size */
         SIZE_SET(self->logical_size,
-                 w + basew / self->size_inc.width,
-                 h + baseh / self->size_inc.height);
+                 self->size_inc.width ? w : w + basew,
+                 self->size_inc.height ? h : h + baseh);
 
         w *= self->size_inc.width;
         h *= self->size_inc.height;
This page took 0.028355 seconds and 4 git commands to generate.