]> Dogcows Code - chaz/openbox/blobdiff - openbox/framerender.c
give different border colors to active and inactive windows. adjust the xml theme...
[chaz/openbox] / openbox / framerender.c
index 214743807d7aae1a023a8308cb50e9e51ea02595..97d5ef53ea4e55c7035fc9cafcf31e28c0c98ec3 100644 (file)
@@ -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) {
This page took 0.020216 seconds and 4 git commands to generate.