Flush the cairo surface after drawing

It is perfectly valid for a cairo surface to delay the actual. This is mostly
done in situations where it speeds stuff up. Since we want our drawing to be
visible, we have to flush the cairo surface when we are done drawing.

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2010-10-05 19:46:42 +02:00
parent 0ee01cc3fe
commit a4b8fc4894
1 changed files with 2 additions and 0 deletions

View File

@ -343,6 +343,8 @@ widget_render(wibox_t *wibox)
widgets->tab[i].widget->draw(widgets->tab[i].widget,
ctx, widgets->tab[i].geometry, wibox);
cairo_surface_flush(ctx->surface);
switch(wibox->orientation)
{
case South: