all repos — openbox @ e549a2d0e043f2a2a9002c641635d2bb48215134

openbox fork - make it a bit more like ryudo

when undecorated and keepborder is on, show only the outside border not the clientborder
Dana Jansens danakj@orodu.net
commit

e549a2d0e043f2a2a9002c641635d2bb48215134

parent

4c56b2de8d649764755036c1ff8c0618c22fb468

2 files changed, 10 insertions(+), 10 deletions(-)

jump to
M openbox/client.copenbox/client.c

@@ -1708,12 +1708,8 @@ self->functions &= ~OB_CLIENT_FUNC_UNDECORATE;

/* finally, the user can have requested no decorations, which overrides everything (but doesnt give it a border if it doesnt have one) */ - if (self->undecorated) { - if (config_theme_keepborder) - self->decorations &= OB_FRAME_DECOR_BORDER; - else - self->decorations = 0; - } + if (self->undecorated) + self->decorations = 0; /* if we don't have a titlebar, then we cannot shade! */ if (!(self->decorations & OB_FRAME_DECOR_TITLEBAR))
M openbox/frame.copenbox/frame.c

@@ -335,14 +335,18 @@ self->decorations = self->client->decorations;

self->max_horz = self->client->max_horz; self->max_vert = self->client->max_vert; - if (self->decorations & OB_FRAME_DECOR_BORDER) { + if (self->decorations & OB_FRAME_DECOR_BORDER || + (self->client->undecorated && config_theme_keepborder)) self->bwidth = ob_rr_theme->fbwidth; + else + self->bwidth = 0; + + if (self->decorations & OB_FRAME_DECOR_BORDER) { self->cbwidth_l = self->cbwidth_r = ob_rr_theme->cbwidthx; self->cbwidth_t = self->cbwidth_b = ob_rr_theme->cbwidthy; - } else { - self->bwidth = self->cbwidth_l = self->cbwidth_t = + } else + self->cbwidth_l = self->cbwidth_t = self->cbwidth_r = self->cbwidth_b = 0; - } if (self->max_horz) { self->cbwidth_l = self->cbwidth_r = 0;