Re: Redraw via Xlib?

Stefan Salewski <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
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/


--
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.