Linux desktop manager Close Window is dangerous.

Brad Fuller bradallenfuller at yahoo.com
Tue Aug 28 17:20:07 UTC 2007


On Tue August 28 2007, Brian Brown 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?
>
> 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.

There are plenty of apps in Linux that will present a confirmation dialog when 
the user clicks on the X icon. So, it can be done.



More information about the Squeak-dev mailing list