]> Dogcows Code - chaz/openbox/commitdiff
don't use the title separator color for shaded windows
authorDana Jansens <danakj@orodu.net>
Sun, 3 Jun 2007 19:48:43 +0000 (19:48 +0000)
committerDana Jansens <danakj@orodu.net>
Sun, 3 Jun 2007 19:48:43 +0000 (19:48 +0000)
openbox/framerender.c

index f122eef87d038e11b0493d0bcb45e420639cf41a..b5cdf174d157b7ada2751303e40849c9e9313358 100644 (file)
@@ -95,9 +95,11 @@ void framerender_frame(ObFrame *self)
         XSetWindowBackground(ob_display, self->rgripbottom, px);
         XClearWindow(ob_display, self->rgripbottom);
 
-        px = (self->focused ?
-              RrColorPixel(ob_rr_theme->title_separator_focused_color) :
-              RrColorPixel(ob_rr_theme->title_separator_unfocused_color));
+        /* don't use the separator color for shaded windows */
+        if (!self->client->shaded)
+            px = (self->focused ?
+                  RrColorPixel(ob_rr_theme->title_separator_focused_color) :
+                  RrColorPixel(ob_rr_theme->title_separator_unfocused_color));
 
         XSetWindowBackground(ob_display, self->titlebottom, px);
         XClearWindow(ob_display, self->titlebottom);
This page took 0.02331 seconds and 4 git commands to generate.