🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.x
Article #23815

Re: Flushing the X-Event Buffer.....

#23815
From: Jeff Hill
Date: Tue, 18 Jun 1991 00:42
11 lines
981 bytes
>Is there a way to flush all of the X Event buffer ...
>For example, if there are a couple of Button Presses in the buffer, 
>and I want to get rid of them ...

XSync() has an option for removing ALL events. A less destructive 
alternative might be to test for these events (and remove them)
with XCheckTypedEvent(). Look at synchronous pointer grabs if 
it is important to handle events which occur during
state changes in the server differently. Such as while the server
is warping (XWarpPointer) the pointer.
						Jeff
Technical Details
Message-ID: <9106180042.AA03799@luke.lanl.gov>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ucbvax!bloom-beacon!dont-send-mail-to-path-lines

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ucbvax!bloom-beacon!dont-send-mail-to-path-lines
From: hill@luke.lanl.GOV (Jeff Hill)
Newsgroups: comp.windows.x
Subject: Re:  Flushing the X-Event Buffer.....
Message-ID: <9106180042.AA03799@luke.lanl.gov>
Date: 18 Jun 91 00:42:59 GMT
Sender: daemon@athena.mit.edu (Mr Background)
Organization: The Internet
Lines: 11