all repos — openbox @ fb2ce21385ea3cc088a8170cb7228140c38479f5

openbox fork - make it a bit more like ryudo

Fix window width/height going less than 1 on some platforms (bug #5246)
Dana Jansens danakj@orodu.net
commit

fb2ce21385ea3cc088a8170cb7228140c38479f5

parent

9868ee29b79bc2e47a8d354401b27397919ae72b

1 files changed, 4 insertions(+), 3 deletions(-)

jump to
M openbox/client.copenbox/client.c

@@ -2930,10 +2930,11 @@ frame_adjust_area(self->frame, FALSE, TRUE, TRUE);

/* 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);