Unity is bad
authorMikael Magnusson <mikachu@gmail.com>
Thu, 19 May 2016 18:24:53 +0000 (20:24 +0200)
committerMikael Magnusson <mikachu@gmail.com>
Thu, 19 May 2016 18:24:53 +0000 (20:24 +0200)
openbox/client.c

index a16df33..ce6b67b 100644 (file)
@@ -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 */
     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,
     *w = MIN(*w,
-             (gint)G_MAXUSHORT
+             (gint)4096
              - self->frame->size.left - self->frame->size.right);
     *h = MIN(*h,
              - 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 */
              - self->frame->size.top - self->frame->size.bottom);
 
     /* gets the frame's position */