[cairo] Redraw via Xlib?

Stefan Salewski mail at ssalewski.de
Fri Apr 20 03:38:53 PDT 2012


On Fri, 2012-04-20 at 00:24 -0700, Josh S. wrote:
> Ok, seems like this is a dumb question, but I've been searching for hours
> with no luck. I have an application that redraws regularly, but the redraws
> only show up when the X window redraws do to being obscured. How can I
> cause Cairo to draw immediately? I tried XFlush()... and XSync(). No luck.

For GTK+ you may use

gtk_widget_queue_draw(widget)

and related functions as used in the zetcode star demo:

http://zetcode.com/tutorials/cairographicstutorial/transformations/




More information about the cairo mailing list