]> Dogcows Code - chaz/openbox/commitdiff
Bug#: 3328 - remove top border for maxed undecorated windows
authorDana Jansens <danakj@orodu.net>
Fri, 11 Jan 2008 15:00:58 +0000 (10:00 -0500)
committerDana Jansens <danakj@orodu.net>
Fri, 11 Jan 2008 15:00:58 +0000 (10:00 -0500)
openbox/frame.c

index b10f793b9de8c7d0d0b4192c832bb15ec51ad9e8..b49139acefbcda91916d36a2eebf6f6079afbf32 100644 (file)
@@ -377,10 +377,12 @@ 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->bwidth,
+                  self->cbwidth_t +
+                  (!self->max_horz || !self->max_vert ||
+                   !self->client->undecorated ? self->bwidth : 0),
                   self->cbwidth_r + (!self->max_horz ? self->bwidth : 0),
                   self->cbwidth_b +
-                    (!self->max_horz || !self->max_vert ? self->bwidth : 0));
+                  (!self->max_horz || !self->max_vert ? self->bwidth : 0));
 
         if (self->decorations & OB_FRAME_DECOR_TITLEBAR)
             self->size.top += ob_rr_theme->title_height + self->bwidth;
This page took 0.027131 seconds and 4 git commands to generate.