Fully maximized windows still have a normal titlebar. Fixes bug #4373
authorDana Jansens <danakj@orodu.net>
Wed, 9 Dec 2009 16:24:16 +0000 (11:24 -0500)
committerDana Jansens <danakj@orodu.net>
Wed, 9 Dec 2009 16:24:16 +0000 (11:24 -0500)
Also, maximized windows were having their client padding reduced by the size of
the outer border from this same bug, which is now fixed.

openbox/frame.c

index c1b3157..df53f3c 100644 (file)
@@ -370,8 +370,7 @@ void frame_adjust_area(ObFrame *self, gboolean moved,
 
         STRUT_SET(self->size,
                   self->cbwidth_l + (!self->max_horz ? self->bwidth : 0),
-                  self->cbwidth_t +
-                  (!self->max_horz || !self->max_vert ? self->bwidth : 0),
+                  self->cbwidth_t + self->bwidth,
                   self->cbwidth_r + (!self->max_horz ? self->bwidth : 0),
                   self->cbwidth_b +
                   (!self->max_horz || !self->max_vert ? self->bwidth : 0));