]> Dogcows Code - chaz/openbox/commitdiff
Fix window width/height going less than 1 on some platforms (bug #5246)
authorDana Jansens <danakj@orodu.net>
Sun, 16 Oct 2011 14:50:51 +0000 (10:50 -0400)
committerDana Jansens <danakj@orodu.net>
Sun, 16 Oct 2011 22:52:16 +0000 (18:52 -0400)
openbox/client.c

index 2e432dbebe2f2613e99f12937a8ef348739ed4a2..f3b4bdac905aac72d2b163283258850b46d629de 100644 (file)
@@ -2930,10 +2930,11 @@ void client_try_configure(ObClient *self, gint *x, gint *y, gint *w, gint *h,
 
     /* cap any X windows at the size of an unsigned short */
     *w = MIN(*w,
-             G_MAXUSHORT - self->frame->size.left - self->frame->size.right);
+             (gint)G_MAXUSHORT
+             - self->frame->size.left - self->frame->size.right);
     *h = MIN(*h,
-             G_MAXUSHORT - self->frame->size.top - self->frame->size.bottom);
-
+             (gint)G_MAXUSHORT
+             - self->frame->size.top - self->frame->size.bottom);
 
     /* gets the frame's position */
     frame_client_gravity(self->frame, x, y);
This page took 0.021233 seconds and 4 git commands to generate.