Linux desktop manager Close Window is dangerous.

Michael van der Gulik mikevdg at gmail.com
Wed Aug 29 02:22:19 UTC 2007


On 8/29/07, Brian Brown <rbb at techgame.net> wrote:
>
>
> 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?


If the user is likely to lose data, then yes.

I usually use Squeak full-screen, and IceWM asks me for confirmation anyway.


>
> 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.
>
>
It can be done...  see here:
http://www.tronche.com/gui/x/icccm/sec-4.html#s-4.2.8.1

Michael.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20070829/3eafdb36/attachment.htm


More information about the Squeak-dev mailing list