summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-05-29 00:04:07 +0000
committerDana Jansens <danakj@orodu.net>2007-05-29 00:04:07 +0000
commit6fa15756c3be713835377c9f521a0f44a1b22e47 (patch)
treea49526c9074274a5cf44d88119a4a87d4c064309
parent1b59b9f6e064008e1fb085fcfda7a847a0422696 (diff)
wasted checked, configure will do them for us
-rw-r--r--openbox/client.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/openbox/client.c b/openbox/client.c
index a2f69d18..0701d3fa 100644
--- a/openbox/client.c
+++ b/openbox/client.c
@@ -429,12 +429,8 @@ void client_manage(Window window)
/* fit the window inside the area */
if (placew > a.width || self->area.height > a.height) {
- placew = MAX(MIN(MIN(self->area.width, a.width),
- self->max_size.width),
- self->min_size.width);
- placeh = MAX(MIN(MIN(self->area.height, a.height),
- self->max_size.height),
- self->min_size.height);
+ placew = MIN(self->area.width, a.width);
+ placeh = MIN(self->area.height, a.height);
ob_debug("setting window size to %dx%d\n",
self->area.width, self->area.height);