]> Dogcows Code - chaz/openbox/commitdiff
give the plate the same background color as its border
authorDana Jansens <danakj@orodu.net>
Sun, 3 Aug 2003 17:11:07 +0000 (17:11 +0000)
committerDana Jansens <danakj@orodu.net>
Sun, 3 Aug 2003 17:11:07 +0000 (17:11 +0000)
openbox/framerender.c

index 52001c111e587f2c308d81ea4dda6aaf1abadb7a..f2814a07daaf0b0ed78dd8f54f948f6ff1dfdc62 100644 (file)
@@ -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;
This page took 0.027742 seconds and 4 git commands to generate.