wibox: initialize wibox borders correctly (FS#343)

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-10-14 17:31:27 +02:00
parent 4379f702c3
commit 96c23ad5cb
1 changed files with 5 additions and 1 deletions

View File

@ -573,9 +573,13 @@ wibox_attach(wibox_t *wibox, screen_t *s)
wibox_position_update(wibox); wibox_position_update(wibox);
simplewindow_init(&wibox->sw, phys_screen, simplewindow_init(&wibox->sw, phys_screen,
wibox->sw.geometry, 0, wibox->sw.orientation, wibox->sw.geometry,
wibox->sw.border.width,
wibox->sw.orientation,
&wibox->sw.ctx.fg, &wibox->sw.ctx.bg); &wibox->sw.ctx.fg, &wibox->sw.ctx.bg);
simplewindow_border_color_set(&wibox->sw, &wibox->sw.border.color);
wibox->need_update = true; wibox->need_update = true;
if(wibox->isvisible) if(wibox->isvisible)