X-Git-Url: http://git.openbox.org/?p=dana%2Fopenbox.git;a=blobdiff_plain;f=openbox%2Fclient.c;h=f3b4bdac905aac72d2b163283258850b46d629de;hp=2e432dbebe2f2613e99f12937a8ef348739ed4a2;hb=fb2ce21385ea3cc088a8170cb7228140c38479f5;hpb=9868ee29b79bc2e47a8d354401b27397919ae72b diff --git a/openbox/client.c b/openbox/client.c index 2e432db..f3b4bda 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -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);