From: Mikael Magnusson Date: Thu, 19 May 2016 18:24:53 +0000 (+0200) Subject: Unity is bad X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=106ca4f2657612f54a417c6323af3bb4c630c124;p=mikachu%2Fopenbox.git Unity is bad --- 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 */