projects
/
mikachu
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
a9c40a2
)
Unity is bad
author
Mikael Magnusson
<mikachu@gmail.com>
Thu, 19 May 2016 18:24:53 +0000
(20:24 +0200)
committer
Mikael Magnusson
<mikachu@gmail.com>
Thu, 19 May 2016 18:24:53 +0000
(20:24 +0200)
openbox/client.c
patch
|
blob
|
history
diff --git
a/openbox/client.c
b/openbox/client.c
index
a16df33
..
ce6b67b
100644
(file)
--- 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 */