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




> what makes you think that its hard ? the only important about the GC
> is that it has the same depth as the root window, and as far as I
> know, all X servers have the same depth in the root window as in any
> other (default) window. So, just cook up a new GC, or grab one from
> the style of an existing widget.

	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...

	Based upon what you have said, I can use any GC derived from any
window to do this (constrained somewhat by the depth of that window).  I
will try this out.  Thanx for the help,

		-Jeff

---
Jeff W. Nichols   "There are over forty million lines of code in Windows,
UW CSE                     and I love every one of them."
jwnichls@cs                         - Jean-Louis Gassee CEO, Be Inc.



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