X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fframe.c;h=37470e3cc15e678fa68df450fb1c4ac8c62a6826;hb=700e551390a86ffdb92ddc061914ec7687658d18;hp=633b7cef383fd76dd69918da18d458d718c1e71a;hpb=7e7efa5c1a5457bd1cda4ecd7eda1ea3eddef12d;p=chaz%2Fopenbox diff --git a/openbox/frame.c b/openbox/frame.c index 633b7cef..37470e3c 100644 --- a/openbox/frame.c +++ b/openbox/frame.c @@ -213,6 +213,7 @@ void frame_adjust_area(ObFrame *self, gboolean moved, { if (resized) { self->decorations = self->client->decorations; + self->max_horz = self->client->max_horz; if (self->decorations & OB_FRAME_DECOR_BORDER) { self->bwidth = ob_rr_theme->bwidth; @@ -222,11 +223,7 @@ void frame_adjust_area(ObFrame *self, gboolean moved, } self->rbwidth = self->bwidth; - if (self->client->max_vert && self->client->max_horz) - self->client->decorations = - self->decorations &= ~OB_FRAME_DECOR_HANDLE; - - if (self->client->max_horz) + if (self->max_horz) self->bwidth = self->cbwidth_x = 0; STRUT_SET(self->innersize, @@ -235,7 +232,7 @@ void frame_adjust_area(ObFrame *self, gboolean moved, self->cbwidth_x, self->cbwidth_y); self->width = self->client->area.width + self->cbwidth_x * 2 - - (self->client->max_horz ? self->rbwidth * 2 : 0); + (self->max_horz ? self->rbwidth * 2 : 0); self->width = MAX(self->width, 1); /* no lower than 1 */ /* set border widths */ @@ -341,7 +338,7 @@ void frame_adjust_area(ObFrame *self, gboolean moved, self->client->area.width + self->size.left + self->size.right, (self->client->shaded ? - ob_rr_theme->title_height + self->bwidth*2: + ob_rr_theme->title_height + self->rbwidth * 2: self->client->area.height + self->size.top + self->size.bottom));