Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!sdd.hp.com!ucsd!ucbvax!information-systems.east-anglia.ac.uk!jrk From: jrk@information-systems.east-anglia.ac.uk (Richard Kennaway CMP RA) Newsgroups: comp.sys.mac.programmer Subject: getFrontClicks Message-ID: <15700.9010311825@s4.sys.uea.ac.uk> Date: 31 Oct 90 18:25:11 GMT Sender: daemon@ucbvax.BERKELEY.EDU Lines: 20 I have an application in which I want to be able to tell, on receiving a mouseDown event, whether the mouse click was responsible for bringing the application into the foreground. I tried just setting the getFrontClicks flag and looking at the first event after the app4 to see if it was a mouseDown. But this didnt work: it was a mouseDown under these circumstances, but it could also be a mouseDown if the application was brought to the front via the apple menu, and I immediately click the mouse again, while the window manager is still drawing the application's windowframes. I tried looking at the times of the app4 and mouseDown, but this also failed to distinguish the two cases. Is there any way to tell? -- Richard Kennaway SYS, University of East Anglia, Norwich, U.K. Internet: jrk@sys.uea.ac.uk uucp: ...mcvax!ukc!uea-sys!jrk