nanogui: Missing events?
Subject:
Re: [nanogui] Missing events?
From:
"Greg Haerr" ####@####.####
Date:
7 Mar 2006 18:38:25 +0000
Message-Id: <185101c64216$4f4eb5f0$0300a8c0@RDP>
: If I call GrMapWindow just before the GrGetNextEvent, shouldn't it pick up
some event?
: What's the nature of such a bug that could cause this? Timing? Memory?
Remember, nano-X is a client/server system. When you call
GrMapWindow(), a command is queued to send to the
server. When GrGetNextEvent or GrFlush is called, the
command is sent to the server. In the meantime, if there's
any event waiting in the client local queue, it is returned.
Otherwise the client blocks waiting for an event. Meanwhile,
the server maps the window, and generates expose events
for windows that have selected for them. Eventually, GrGetNextEvent
will get that event, possibly after multiple waits.
Regards,
Greg