Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!asuvax!mcdphx!toy!razdan From: razdan@phx.mcd.mot.com (anshuman razdan) Newsgroups: comp.windows.x Subject: Re: How do I avoid a flood of Expose events? Message-ID: Date: 27 Aug 90 18:38:22 GMT References: <1990Aug25.002403.1804@veritas.uucp> Sender: listen@mcdphx.phx.mcd.mot.com Organization: Motorola MCD Lines: 29 In-reply-to: geoff@veritas.uucp's message of 25 Aug 90 00:24:03 GMT In article <1990Aug25.002403.1804@veritas.uucp> geoff@veritas.uucp (Geoffrey Leach) writes: Path: mcdphx!asuvax!cs.utexas.edu!usc!snorkelwacker!apple!veritas!geoff From: geoff@veritas.uucp (Geoffrey Leach) Newsgroups: comp.windows.x Date: 25 Aug 90 00:24:03 GMT Organization: VERITAS Software Lines: 6 I could use some advice on the following situation. Environment is X11R3. I have a widget that sits beneath a bunch of other widgets. Even though I elect event compression, building the stack results in a flood of expose events for the widget on the bottom, with resultant redundant re-drawing. How can I detect or avoid them? Look at the event (structure) and see how many more expose events (that were generated one after another) are left. Redraw when this number reaches(approaches) zero. -- Anshuman Razdan ************************************************************ * razdan@toy Test and Methodology Group * * * * razdan@phx.mcd.mot.com Diablo Plant, Tempe Az * ************************************************************