diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-06-02 21:19:49 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-06-02 21:19:49 +0000 |
| commit | 439d2c62fa83e4a233ea44f3eb5d706c6edfc3df (patch) | |
| tree | 446bf17fcee7e18c6feaedcb755eeb3a233185cc /openbox | |
| parent | 25f215444b3c8e7b186b9c3892a9a4f659e79998 (diff) | |
remove the title separator width thing.
add a separate color for the title separator
Diffstat (limited to 'openbox')
| -rw-r--r-- | openbox/frame.c | 8 | ||||
| -rw-r--r-- | openbox/framerender.c | 9 |
2 files changed, 10 insertions, 7 deletions
diff --git a/openbox/frame.c b/openbox/frame.c index 6ca718c8..8ce2a16d 100644 --- a/openbox/frame.c +++ b/openbox/frame.c @@ -365,7 +365,7 @@ void frame_adjust_area(ObFrame *self, gboolean moved, self->cbwidth_b + (!self->max_horz || !self->max_vert ? self->bwidth : 0)); if (self->decorations & OB_FRAME_DECOR_TITLEBAR) - self->size.top += ob_rr_theme->title_height + ob_rr_theme->tswidth; + self->size.top += ob_rr_theme->title_height + self->bwidth; if (self->decorations & OB_FRAME_DECOR_HANDLE && ob_rr_theme->handle_height > 0) { @@ -468,14 +468,12 @@ void frame_adjust_area(ObFrame *self, gboolean moved, XMapWindow(ob_display, self->titletopleft); XMapWindow(ob_display, self->titletopright); - if (self->decorations & OB_FRAME_DECOR_TITLEBAR && - ob_rr_theme->tswidth) - { + if (self->decorations & OB_FRAME_DECOR_TITLEBAR) { XMoveResizeWindow(ob_display, self->titlebottom, self->bwidth, ob_rr_theme->title_height + self->bwidth, self->width, - ob_rr_theme->tswidth); + self->bwidth); XMapWindow(ob_display, self->titlebottom); } else diff --git a/openbox/framerender.c b/openbox/framerender.c index 2fec1a55..f122eef8 100644 --- a/openbox/framerender.c +++ b/openbox/framerender.c @@ -71,8 +71,6 @@ void framerender_frame(ObFrame *self) XClearWindow(ob_display, self->titletopright); XSetWindowBackground(ob_display, self->titleright, px); XClearWindow(ob_display, self->titleright); - XSetWindowBackground(ob_display, self->titlebottom, px); - XClearWindow(ob_display, self->titlebottom); XSetWindowBackground(ob_display, self->handleleft, px); XClearWindow(ob_display, self->handleleft); @@ -96,6 +94,13 @@ void framerender_frame(ObFrame *self) XClearWindow(ob_display, self->rgriptop); 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)); + + XSetWindowBackground(ob_display, self->titlebottom, px); + XClearWindow(ob_display, self->titlebottom); } if (self->decorations & OB_FRAME_DECOR_TITLEBAR) { |
