[comp.windows.x] XClearRegion

jonnyg@ROVER.UMD.EDU (Jon Greenblatt) (02/07/89)

	I posted earlier that it was possible to clear a region by setting
the clipping region of a graphics context and painting the window with the
background color/pixmap using GetWindowAttributes.  Oops! GetWindowAttributes
does not give you background info, I based this on code that does other
things and does not use the background color.  I do not see anyway of doing
this without keeping tract of the window's background pixel/pixmap yourself.
I think XClearArea/XClearWindow should take any drawable and not just a
window id!. This would make writing the XClearRegion posible without making
it part of the protocol.  XClearRegion would also be a nice protocol
addition anyway, this would follow better than changing XClearWindow.


						JonnyG.