diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-05-11 22:18:43 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-05-11 22:18:43 +0000 |
| commit | b63ad92cca9f14a1d86c00bd76b52c1626a29ee3 (patch) | |
| tree | 8634ba30a989b859f09113b7631b5053e3e18abe /openbox/framerender.c | |
| parent | b2006b8b451f52ce274980b6b3cb626d1347da88 (diff) | |
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.
Diffstat (limited to 'openbox/framerender.c')
| -rw-r--r-- | openbox/framerender.c | 10 |
1 files changed, 10 insertions, 0 deletions
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) { |
