Path: utzoo!attcan!uunet!lll-winken!lll-tis!helios.ee.lbl.gov!pasteur!ames!umd5!uflorida!gatech!bloom-beacon!ZERMATT.LCS.MIT.EDU!RWS From: RWS@ZERMATT.LCS.MIT.EDU (Robert Scheifler) Newsgroups: comp.windows.x Subject: Question on detecting button presses and mouse position Message-ID: <19880609193235.2.RWS@KILLINGTON.LCS.MIT.EDU> Date: 9 Jun 88 19:32:00 GMT References: <8806091900.AA02915@nrl-aic.arpa> Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 3 XLIB:EVENT-CASE has a :TIMEOUT option that you can use to do what you want. As a simplified example of what you are attempting to do: (xlib:event-case (dpy :timeout 7.5) (button-press (x y) `(,x ,y)))