Re: [gtk-list] Re: Creating a root window GC
- From: Paul Barton-Davis <pbd op net>
- To: gtk-list redhat com
- Cc: jwnichls cs washington edu
- Subject: Re: [gtk-list] Re: Creating a root window GC
- Date: Fri, 07 May 1999 16:32:59 -0400
> 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.
] [Thread Prev