summaryrefslogtreecommitdiff
path: root/openbox/frame.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-06-11 18:56:19 +0000
committerDana Jansens <danakj@orodu.net>2007-06-11 18:56:19 +0000
commite549a2d0e043f2a2a9002c641635d2bb48215134 (patch)
treef8997d8321e37ec624a0aabfa4e695552e976056 /openbox/frame.c
parent4c56b2de8d649764755036c1ff8c0618c22fb468 (diff)
when undecorated and keepborder is on, show only the outside border not the clientborder
Diffstat (limited to 'openbox/frame.c')
-rw-r--r--openbox/frame.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/openbox/frame.c b/openbox/frame.c
index c30415dd..5b8e52fc 100644
--- a/openbox/frame.c
+++ b/openbox/frame.c
@@ -335,14 +335,18 @@ void frame_adjust_area(ObFrame *self, gboolean moved,
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;