Path: utzoo!attcan!uunet!lll-winken!xanth!nic.MR.NET!hal!cwjcc!tut.cis.ohio-state.edu!bloom-beacon!ROVER.UMD.EDU!jonnyg From: jonnyg@ROVER.UMD.EDU (Jon Greenblatt) Newsgroups: comp.windows.x Subject: Re: XClearRegion Message-ID: <8902062026.AA09329@rover.UMD.EDU> Date: 6 Feb 89 20:26:13 GMT Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 14 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.