From b8ba52fabc8d696d7c9e6abb285a4781a6e7aed6 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 30 Jul 2003 06:08:12 +0000 Subject: [PATCH] code cleaning --- openbox/frame.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/openbox/frame.c b/openbox/frame.c index 1c9913a1..05ac3c71 100644 --- a/openbox/frame.c +++ b/openbox/frame.c @@ -265,9 +265,7 @@ void frame_adjust_area(ObFrame *self, gboolean moved, gboolean resized) */ } else XUnmapWindow(ob_display, self->handle); - } - if (resized) { /* move and resize the plate */ XMoveResizeWindow(ob_display, self->plate, self->innersize.left - self->cbwidth, @@ -276,9 +274,7 @@ void frame_adjust_area(ObFrame *self, gboolean moved, gboolean resized) self->client->area.height); /* when the client has StaticGravity, it likes to move around. */ XMoveWindow(ob_display, self->client->window, 0, 0); - } - if (resized) { STRUT_SET(self->size, self->innersize.left + self->bwidth, self->innersize.top + self->bwidth, @@ -290,7 +286,8 @@ void frame_adjust_area(ObFrame *self, gboolean moved, gboolean resized) RECT_SET_SIZE(self->area, self->client->area.width + self->size.left + self->size.right, - (self->client->shaded ? ob_rr_theme->title_height + self->bwidth*2: + (self->client->shaded ? + ob_rr_theme->title_height + self->bwidth*2: self->client->area.height + self->size.top + self->size.bottom)); @@ -299,8 +296,7 @@ void frame_adjust_area(ObFrame *self, gboolean moved, gboolean resized) frame_client_gravity. */ self->area.x = self->client->area.x; self->area.y = self->client->area.y; - frame_client_gravity((ObFrame*)self, - &self->area.x, &self->area.y); + frame_client_gravity(self, &self->area.x, &self->area.y); } /* move and resize the top level frame. -- 2.45.2