all repos — openbox @ 4e3ffbfc281a1e738838fd4859ac691ccea91a87

openbox fork - make it a bit more like ryudo

cap the client (and frame) window's dimensions at the range of an unsigned short (bug #4596)
Dana Jansens danakj@orodu.net
commit

4e3ffbfc281a1e738838fd4859ac691ccea91a87

parent

9c4ef9aa4a02c15d4257ab2b61150f021baf81b2

1 files changed, 7 insertions(+), 0 deletions(-)

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

@@ -2874,6 +2874,13 @@ anything visible for real, this way the constraints below can work with

the updated frame dimensions. */ 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); + *h = MIN(*h, + G_MAXUSHORT - self->frame->size.top - self->frame->size.bottom); + + /* gets the frame's position */ frame_client_gravity(self->frame, x, y);