[cairo] Using Xlib to draw on root-window problem

Ryan Flannery ryan.flannery at gmail.com
Wed Dec 31 15:36:42 PST 2008


On Wed, Dec 31, 2008 at 6:31 PM, Ryan Flannery <ryan.flannery at gmail.com> wrote:
> Hello cairo@,
>
> I recently started to use cairo+pango for some simple drawing needs,
> and have always found it quick-n-easy to use for most of my needs
> (many thanks to the devs!).
>
> I've had a problem recently however when trying to use the Xlib
> backend to draw on the X11 root window.  I don't seem to be able to
> correctly create a cairo_surface_t  and/or cairo_t object.
>
> Attached (and below) is a small program showing the problem I'm having...
> The "cairo_create" call on line 39 segfaults.
>
> Any hints or smacks with a clue-stick would be greatly appreciated.
>
> -Ryan
>

Forgot to mention, I'm using cairo 1.8.4


More information about the cairo mailing list