Linux desktop manager Close Window is dangerous.

Brian Brown rbb at techgame.net
Tue Aug 28 17:14:36 UTC 2007


On Aug 28, 2007, at 8:43 AM, Brad Fuller wrote:

> On Mon August 27 2007, Michael van der Gulik wrote:
>> On 8/28/07, Bert Freudenberg <bert at freudenbergs.de> wrote:
>>> On Aug 27, 2007, at 16:38 , Brad Fuller wrote:
>>>> Before I dig into this, I bet someone has already investigated this
>>>> and
>>>> decided it can't be done. When you close the Squeak with the  
>>>> desktop
>>>> manager's "Close Window" (the "X"), squeak closes without a
>>>> confirmation
>>>> dialog. Windows has an "Are you sure?" and I expect the Mac version
>>>> does too.
>>>> Why not Linux?
>>>
>>> It would add considerably to the complexity of the X11 VM - Xlib  
>>> does
>>> not provide a dialog box call, whereas Win and Mac libraries do.
>>
>> Would it be possible to send an event/message back to the VM so  
>> that the
>> image could pop up a Morphic-based dialog box?
>
> Yeah, that would be the best because the experience would be  
> (potentially)
> more consistent across platforms. I've never written a Linux app,  
> except
> Squeak plugin - so I would have to figure out how to do it. It just  
> seems we
> should have a confirmation so a user doesn't accidentally hit the  
> "X" when
> s/he meant to hit the "Maximize" icon.
>
> In fact, I'm now thinking this should be labelled a defect. What do  
> you think?
>

I *think* this issue with this is that Squeak has no visibility into  
those Window Manager functions. I hope I'm incorrect, but the window  
close message will happen and Squeak won't know about it.


- Brian




More information about the Squeak-dev mailing list