mouse clicks in os-x

Ned Konz ned at bike-nomad.com
Thu Jul 29 21:15:14 UTC 2004


On Thursday 29 July 2004 1:31 pm, Andreas Raab wrote:
> Ned wrote:
> > However, in the Windows VM we ensure that we have focus
> > on a WM_?BUTTONDOWN (OR BUTTONUP) message, then go ahead
> > and process it as normal (in fact, we check the focus twice
> > on a buttonUP message, just to make sure!). So the behavior
> > is the same as kwm's "Activate and pass click". But this is a
> > focus policy decision on the part of Squeak.
>
> No, it isn't. You are misinterpreting GetFocus() and SetFocus() API calls:

Ah, right. It's been a while since I spent time doing Windows programming.

Note that it was John's proposed FIX to the Mac VM and not mine.

> John McIntosh had said:
>
> > What I'm proposing here is to "FIX" that issue and revert to standard
> > click processing on window activation. Squeak and the squeak window
> > should come to the foreground, but we shouldn't pass on that mouse
> > click to cause the desktop menu to be displayed.
>
> Unfortunately, there is absolutely nothing I can do - this decision isn't
> made by the VM at all.
>
> > Please let me know if you have any concerns with this change.
>
> Only that it is impossible to implement ;-)

Actually, couldn't we process WM_MOUSEACTIVATE and return MA_ACTIVATEANDEAT to 
get the policy that John's suggesting?

-- 
Ned Konz
http://bike-nomad.com




More information about the Squeak-dev mailing list