Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!ames!sgi!shinobu!odin!sgi.com!karlton From: karlton@sgi.com (Philip L. Karlton) Newsgroups: comp.windows.x Subject: Re: Window visibility question Message-ID: <7196@odin.corp.sgi.com> Date: 3 May 90 16:49:59 GMT References: <206@trwacs.UUCP> Sender: news@odin.corp.sgi.com Reply-To: karlton@sgi.com Organization: Silicon Graphics, System Software Division Lines: 15 In article <206@trwacs.UUCP>, epstein@trwacs.UUCP (Jeremy Epstein) writes: |> I'm looking for a way to calculate which portions of a window are |> visible and which are obscured. I know that expose events will |> tell me what I need to redraw, but I need to know when the window |> becomes obscured, *not* when it is exposed. I must be in a bit of strange mood to even suggest this, but you could always just set the background of the window to None and then do a ClearArea of the entire window requesting exposure events. Of course the true state of the window could have changed by the time you process your first Exposure event. PK -- Phil Karlton karlton@wpd.sgi.com