[Vm-dev] Fwd: Linux desktop manager Close Window is dangerous.

John M McIntosh johnmci at smalltalkconsulting.com
Wed Aug 29 17:37:20 UTC 2007


Ok, well the other option is this more of a application event, where  
this close window event really means quit the application.

On the macintosh we get a quit application event which we ignore, or  
optionally for the Scratch people we have a VM setting were the VM  
actually terminates. This is used to terminate the Scratch VM without  
intervention if the macintosh user logs off or shutdowns the machine.

We could of course flow the event 6 when we receive the "quit  
application" event from the operating system.


On Aug 29, 2007, at 10:03 AM, Andreas Raab wrote:

> Yeah, it should use a window event with the close window subtype  
> unless there is something about X that I don't know (is this  
> possibly a post-close event, e.g., the window manager destroyed the  
> window already?)
>
> Cheers,
>   - Andreas
>
> John M McIntosh wrote:
>> How is this different than sending an event type 5 (window event)
>> with a subtype of 2 (WindowEventClose)
>> Well unless the idea is that you can close the main squeak window  
>> and squeak will keep running.
>> On Aug 29, 2007, at 8:20 AM, Ian Piumarta wrote:
>>>
>>>
>>> Begin forwarded message:
>>>
>>>> From: vm-dev-owner at lists.squeakfoundation.org
>>>> Date: August 29, 2007 7:42:47 AM PDT
>>>> To: piumarta at gmail.com
>>>> Subject: Re: Linux desktop manager Close Window is dangerous.
>>>>
>>>> You are not allowed to post to this mailing list, and your  
>>>> message has
>>>> been automatically rejected.  If you think that your messages are
>>>> being rejected in error, contact the mailing list owner at
>>>> vm-dev-owner at lists.squeakfoundation.org.
>>>>
>>>>
>>>> From: Ian Piumarta <piumarta at gmail.com>
>>>> Date: August 29, 2007 7:50:53 AM PDT
>>>> To: The general-purpose Squeak developers list <squeak- 
>>>> dev at lists.squeakfoundation.org>
>>>> Cc: Squeak Virtual Machine Development Discussion <vm- 
>>>> dev at lists.squeakfoundation.org>
>>>> Subject: Re: Linux desktop manager Close Window is dangerous.
>>>>
>>>>
>>>> This patch disables the title bar quit button (iff your window  
>>>> manager participates in the WM_DELETE_WINDOW protocol) and  
>>>> causes an event of type 6 to be sent to the image (in response  
>>>> to which it should pop open the 'save changes before quit'  
>>>> dialogue -- an SEP).
>>>>
>>>> If (1) several people report that this adequately addresses the  
>>>> issue and (2) nobody else has claimed event type 6, then I'll  
>>>> commit the changes and move the event type definition into sq.h  
>>>> next to the others.
>>>>
>>>>
>>>> <quit.diff.gz>
>>>
>> -- 
>> ===================================================================== 
>> ======
>> John M. McIntosh <johnmci at smalltalkconsulting.com>
>> Corporate Smalltalk Consulting Ltd.  http:// 
>> www.smalltalkconsulting.com
>> ===================================================================== 
>> ======

--
======================================================================== 
===
John M. McIntosh <johnmci at smalltalkconsulting.com>
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
======================================================================== 
===




More information about the Vm-dev mailing list