Case 17178 added an extra check to the handling of mouse movement to use the 
result from asking the event handler by default (if the morph has an event 
handler) in the same way as other “handles” methods behaves. The default 
behaviour for Morph event handling is that if an event handler is present for a 
morphic object it is up to its class to specify which events that uses the 
event handling mechanism or not.

GLMSystemWindow>>#initialize creates an event handler for itself, which then 
causes the #handlesMouseMove: to return false since it has an event handler, 
but it does not handle #mouseMove.

One solution could be to remove GLMSystemWindow>>#initialize and implement 
#keyStroke: instead.

>>keyStroke:

super keyStroke.
self handleKeyStroke: evt.

Other possible solution could be to implement #handlesMouseMove: in 
GMLSystemWindow with the logic necessary.

Another possibility is to only return early in Morph>>#handlesMouseMove: Iff 
the event handler has an event registration for #mouseMove.

I would go with the first solution, and remove the need for an event handler 
object in GLMSystemWindow.


Best regards,
Henrik


From: Pharo-dev [mailto:pharo-dev-boun...@lists.pharo.org] On Behalf Of Andrei 
Chis
Sent: Friday, December 4, 2015 4:31 PM
To: Pharo Development List <pharo-dev@lists.pharo.org>
Cc: Moose-related development <moose-...@list.inf.unibe.ch>
Subject: Re: [Pharo-dev] GTDebugger not draggable with latest VM

Seems to happen due to the fix in issue 
17178<https://pharo.fogbugz.com/f/cases/17178>

On Fri, Dec 4, 2015 at 4:21 PM, Andrei Chis 
<chisvasileand...@gmail.com<mailto:chisvasileand...@gmail.com>> wrote:
Seems that starting with Pharo 50483 one cannot drag the 
inspector/playground/debugger.

No idea what happened.

On Fri, Dec 4, 2015 at 3:19 PM, Blondeau Vincent 
<vincent.blond...@worldline.com<mailto:vincent.blond...@worldline.com>> wrote:
Hi,

I have a problem on the latest Moose6.0 image.
I was not able to open a Roassal view, I had a NativeBoost Generic failure…
So I updated the VM to last stable, and, now, the GTdebugger and the Moose 
panel are not draggable anymore…
Can somebody is able to reproduce the problem?

Thanks

Cheers,
Vincent

________________________________

Ce message et les pièces jointes sont confidentiels et réservés à l'usage 
exclusif de ses destinataires. Il peut également être protégé par le secret 
professionnel. Si vous recevez ce message par erreur, merci d'en avertir 
immédiatement l'expéditeur et de le détruire. L'intégrité du message ne pouvant 
être assurée sur Internet, la responsabilité de Worldline ne pourra être 
recherchée quant au contenu de ce message. Bien que les meilleurs efforts 
soient faits pour maintenir cette transmission exempte de tout virus, 
l'expéditeur ne donne aucune garantie à cet égard et sa responsabilité ne 
saurait être recherchée pour tout dommage résultant d'un virus transmis.

This e-mail and the documents attached are confidential and intended solely for 
the addressee; it may also be privileged. If you receive this e-mail in error, 
please notify the sender immediately and destroy it. As its integrity cannot be 
secured on the Internet, the Worldline liability cannot be triggered for the 
message content. Although the sender endeavours to maintain a computer 
virus-free network, the sender does not warrant that this transmission is 
virus-free and will not be liable for any damages resulting from any virus 
transmitted.


Reply via email to