diff options
| author | Dana Jansens <danakj@orodu.net> | 2008-01-11 10:00:58 -0500 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2008-01-11 10:00:58 -0500 |
| commit | 44ee90c94623d37b3de3767233bc9cd38b670d34 (patch) | |
| tree | 3a99f149e30ff1208dc5c3c3920d80572b86847c /openbox | |
| parent | 9e9a7e124d1a80579281c5ab2ffc3574f38f9eba (diff) | |
Bug#: 3328 - remove top border for maxed undecorated windows
Diffstat (limited to 'openbox')
| -rw-r--r-- | openbox/frame.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/openbox/frame.c b/openbox/frame.c index b10f793b..b49139ac 100644 --- a/openbox/frame.c +++ b/openbox/frame.c @@ -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; |
