From b63ad92cca9f14a1d86c00bd76b52c1626a29ee3 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 11 May 2007 22:18:43 +0000 Subject: give different border colors to active and inactive windows. adjust the xml theme format a little to make it BETTER. rawr. add some metadata standards too. --- openbox/framerender.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'openbox/framerender.c') diff --git a/openbox/framerender.c b/openbox/framerender.c index 21474380..97d5ef53 100644 --- a/openbox/framerender.c +++ b/openbox/framerender.c @@ -42,6 +42,16 @@ void framerender_frame(ObFrame *self) RrColorPixel(ob_rr_theme->cb_unfocused_color)); XSetWindowBackground(ob_display, self->inner, px); XClearWindow(ob_display, self->inner); + + px = (self->focused ? + RrColorPixel(ob_rr_theme->frame_focused_border_color) : + RrColorPixel(ob_rr_theme->frame_unfocused_border_color)); + XSetWindowBorder(ob_display, self->window, px); + XSetWindowBorder(ob_display, self->inner, px); + XSetWindowBorder(ob_display, self->title, px); + XSetWindowBorder(ob_display, self->handle, px); + XSetWindowBorder(ob_display, self->rgrip, px); + XSetWindowBorder(ob_display, self->lgrip, px); } if (self->decorations & OB_FRAME_DECOR_TITLEBAR) { -- cgit v1.2.3