X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=openbox%2Fframe.c;h=6c3b418a50c1face281f6b01cdb6771a1c17d841;hb=dcb5a38fdb52356fef7b94644dedc358fd2bfd85;hp=2f1fae309e941b4b4d3e8ab16b7486b8829de2e6;hpb=a098c2437e96d58c647559b46278bc92954e9bbe;p=chaz%2Fopenbox diff --git a/openbox/frame.c b/openbox/frame.c index 2f1fae30..6c3b418a 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,10 +223,7 @@ void frame_adjust_area(ObFrame *self, gboolean moved, } self->rbwidth = self->bwidth; - if (self->client->max_vert && self->client->max_horz) - 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, @@ -234,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 */