From fadf435ee1a37cf542be037cc2d7e7649a544581 Mon Sep 17 00:00:00 2001 From: Carlos Pita Date: Fri, 14 Oct 2011 17:01:18 -0400 Subject: 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 --- openbox/frame.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'openbox/frame.c') 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; -- cgit v1.2.3