From 106ca4f2657612f54a417c6323af3bb4c630c124 Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Thu, 19 May 2016 20:24:53 +0200 Subject: [PATCH] Unity is bad --- openbox/client.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/openbox/client.c b/openbox/client.c index a16df330..ce6b67b5 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -3010,11 +3010,12 @@ void client_try_configure(ObClient *self, gint *x, gint *y, gint *w, gint *h, frame_adjust_area(self->frame, FALSE, TRUE, TRUE); /* cap any X windows at the size of an unsigned short */ + /* actually make that a bit less, X shits itself on windows this large too */ *w = MIN(*w, - (gint)G_MAXUSHORT + (gint)4096 - self->frame->size.left - self->frame->size.right); *h = MIN(*h, - (gint)G_MAXUSHORT + (gint)4096 - self->frame->size.top - self->frame->size.bottom); /* gets the frame's position */ -- 2.34.1