From: Dana Jansens Date: Sun, 3 Aug 2003 17:11:07 +0000 (+0000) Subject: give the plate the same background color as its border X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=9ba3f7d0fd06cd8c29571a997c4092acfbbb2c98;p=chaz%2Fopenbox give the plate the same background color as its border --- diff --git a/openbox/framerender.c b/openbox/framerender.c index 52001c11..f2814a07 100644 --- a/openbox/framerender.c +++ b/openbox/framerender.c @@ -15,12 +15,15 @@ static void framerender_close(ObFrame *self, RrAppearance *a); void framerender_frame(ObFrame *self) { - if (self->focused) - XSetWindowBorder(ob_display, self->plate, - RrColorPixel(ob_rr_theme->cb_focused_color)); - else - XSetWindowBorder(ob_display, self->plate, - RrColorPixel(ob_rr_theme->cb_unfocused_color)); + { + unsigned long px; + + px = (self->focused ? + RrColorPixel(ob_rr_theme->cb_focused_color) : + RrColorPixel(ob_rr_theme->cb_unfocused_color)); + XSetWindowBorder(ob_display, self->plate, px); + XSetWindowBackground(ob_display, self->plate, px); + } if (self->decorations & OB_FRAME_DECOR_TITLEBAR) { RrAppearance *t, *l, *m, *n, *i, *d, *s, *c;