[comp.windows.x] Handling exposure events

6600tom@ucsbuxa.ucsb.edu (Tom Weinstein) (01/02/90)

I just got the O'Reilly X manuals, and in volume I on page 70, it says
that the correct way to handle expose events is to search the queue for
them and handle them all at the same time.  It seems to me that this
could lead to problems if there are other events in the queue
interleaved between the expose events.

For instance.  If a window is partially obscured, and when the user
resizes it the window manager automatically raises it. I would think
this situation would cause one or more expose events, then a configure
notify event, and finally another series of expose events.  If the
client handled all of the expose events simultaneously, it would handle
the latter series of expose events assuming the wrong size of the
window.

Is this a valid concern, or am I missing something?


--
You have to look with better | Tom Weinstein      ...ucbvax!hub!ucsbuxa!6600tom
eyes than that! -- The Abyss | 6600tom@ucsbuxa.bitnet  6600tom@ucsbuxa.ucsb.edu

rws@EXPO.LCS.MIT.EDU (Bob Scheifler) (01/02/90)

    I just got the O'Reilly X manuals, and in volume I on page 70, it says
    that the correct way to handle expose events is to search the queue for
    them and handle them all at the same time.  It seems to me that this
    could lead to problems if there are other events in the queue
    interleaved between the expose events.

You are correct.