diff options
| author | Carlos Pita <carlosjosepita@gmail.com> | 2011-10-14 17:01:18 -0400 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2011-10-16 18:51:51 -0400 |
| commit | fadf435ee1a37cf542be037cc2d7e7649a544581 (patch) | |
| tree | ebbbb30067d2ece2f9f2bfb0992928f8012a4d06 /openbox/frame.c | |
| parent | e4e7c2be52ee1a0b75d9d2feff57fdc992fedb9b (diff) | |
Specific border width/color for undecorated active/inactive windows (bug #4889)
The attached patch adds three theme options with backward compatible defaults:
undecorated.border.width
defaults to border.width
window.undecorated.active.border.color
defaults to window.active.border.color
window.undecorated.inactive.border.color
defaults to window.inactive.border.color
Diffstat (limited to 'openbox/frame.c')
| -rw-r--r-- | openbox/frame.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/openbox/frame.c b/openbox/frame.c index 3aa3ab7f..48dda24e 100644 --- a/openbox/frame.c +++ b/openbox/frame.c @@ -348,7 +348,8 @@ void frame_adjust_area(ObFrame *self, gboolean moved, self->shaded = self->client->shaded; if (self->decorations & OB_FRAME_DECOR_BORDER) - self->bwidth = ob_rr_theme->fbwidth; + self->bwidth = self->client->undecorated ? + ob_rr_theme->ubwidth : ob_rr_theme->fbwidth; else self->bwidth = 0; |
