From: Dana Jansens Date: Wed, 30 Jul 2003 16:13:52 +0000 (+0000) Subject: attempt #2 at better logical size values X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=0a809d36dd770aae300a19d841fa7958cbe67628;p=chaz%2Fopenbox attempt #2 at better logical size values --- diff --git a/openbox/client.c b/openbox/client.c index 4612bd86..af445e74 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -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;