Path: utzoo!mnetor!uunet!husc6!rutgers!ames!ucbcad!ucbvax!BU-CS.BU.EDU!bzs From: bzs@BU-CS.BU.EDU (Barry Shein) Newsgroups: comp.windows.x Subject: Damage repair event on root window? Message-ID: <8712202121.AA16639@bu-cs.bu.edu> Date: 20 Dec 87 21:21:12 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The ARPA Internet Lines: 33 System: Sun3/160, SunOS 3.4, X11R1 patches thru the 30s somewhere Problem: I am trying to do an XGetImage() of the area under a window, strategy was: Unmap, XGetImage of root corresponding to area, re-map. It's unpredictable whether I get a still-damaged area or not. So: Try various events on the root-window, no luck, can get them but none seem to indicate that damage repair has completed. Then: Try napping for a short period (1/10 second), that works fine but obviously the wrong way to go. Questions: Is the approach crocked (unmapping then XGetImage of root)? Better way? A way to delay the XGetImage till damage repair is complete? Or am I being bitten by a bug of some sort (that is, if you think it *should* have worked otherwise just tell me, bugs I can deal with, conceptual problems are a whole 'nother can-o-worms.) -Barry Shein, Boston University P.S. If you must know I was just playing with various calls in preparation for a larger project. This program acts as a magnifying glass on the bits under the window. Just cute mostly, but I do need the underlying operations later.