From a4b8fc4894bcbaf026dd247d3ff619d8baa1e03b Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Tue, 5 Oct 2010 19:46:42 +0200 Subject: [PATCH] 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 --- widget.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/widget.c b/widget.c index 1a52ba338..5869709e9 100644 --- a/widget.c +++ b/widget.c @@ -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: