I'd bet it is...

PasteUpMorph>>windowEvent: anEvent
self windowEventHandler
ifNotNil: [^self windowEventHandler windowEvent: anEvent].

anEvent type == #windowClose
ifTrue: [WorldState quitSession].

and #windowsEvent: is called in a sequence like:

VM event => InputEventFetcher => Morphic event => PasteUpMorph ...

On Wed, Oct 1, 2014 at 1:48 PM, Hilaire <hila...@drgeo.eu> wrote:

> Hello,
>
> I would like to change the behavior of Pharo when the user clicks on the
> close button of the host window.
>
> So far it looks like #quitSession is sended from somewhere, but I fail
> to see the chain of call between the host window and the #quitSession
> message.
>
> Any idea?
>
> Thanks
>
> Hilaire
>
>
> --
> Dr. Geo - http://drgeo.eu
> iStoa - http://istoa.drgeo.eu
>
>
>

Reply via email to