give the plate the same background color as its border
This commit is contained in:
parent
7d3127b17d
commit
9ba3f7d0fd
1 changed files with 9 additions and 6 deletions
|
@ -15,12 +15,15 @@ static void framerender_close(ObFrame *self, RrAppearance *a);
|
||||||
|
|
||||||
void framerender_frame(ObFrame *self)
|
void framerender_frame(ObFrame *self)
|
||||||
{
|
{
|
||||||
if (self->focused)
|
{
|
||||||
XSetWindowBorder(ob_display, self->plate,
|
unsigned long px;
|
||||||
RrColorPixel(ob_rr_theme->cb_focused_color));
|
|
||||||
else
|
px = (self->focused ?
|
||||||
XSetWindowBorder(ob_display, self->plate,
|
RrColorPixel(ob_rr_theme->cb_focused_color) :
|
||||||
RrColorPixel(ob_rr_theme->cb_unfocused_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) {
|
if (self->decorations & OB_FRAME_DECOR_TITLEBAR) {
|
||||||
RrAppearance *t, *l, *m, *n, *i, *d, *s, *c;
|
RrAppearance *t, *l, *m, *n, *i, *d, *s, *c;
|
||||||
|
|
Loading…
Reference in a new issue