Re: [gtk-list] Re: Creating a root window GC



>	I guess I just assumed that if you created a GC associated with a
>particular window that the GC would only be able to draw to that window
>and not outside of it.  Also, I would assume that the GC would draw
>relative to the position of that window (admittedly not a big deal).  I
>want to be able to draw over the top of all windows on the screen...

The GC doesn't control the positioning of the draw, but it does
control how clipping is done.

To draw on the root window, and have it write over all children of the
root window (essentially, all windows), you need to call
gdk_gc_set_subwindow() with the second argument set to
GDK_INCLUDE_INFERIORS, or otherwise arrange for this to be set.

--p



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]