[comp.sys.mac.programmer] getFrontClicks

jrk@information-systems.east-anglia.ac.uk (Richard Kennaway CMP RA) (11/01/90)

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