<br><br><div><span class="gmail_quote">On 8/29/07, <b class="gmail_sendername">Brian Brown</b> <<a href="mailto:rbb@techgame.net">rbb@techgame.net</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>On Aug 28, 2007, at 8:43 AM, Brad Fuller wrote:<br><br>> On Mon August 27 2007, Michael van der Gulik wrote:<br>>> On 8/28/07, Bert Freudenberg <<a href="mailto:bert@freudenbergs.de">bert@freudenbergs.de</a>
> wrote:<br>>>> On Aug 27, 2007, at 16:38 , Brad Fuller wrote:<br>>>>> Before I dig into this, I bet someone has already investigated this<br>>>>> and<br>>>>> decided it can't be done. When you close the Squeak with the
<br>>>>> desktop<br>>>>> manager's "Close Window" (the "X"), squeak closes without a<br>>>>> confirmation<br>>>>> dialog. Windows has an "Are you sure?" and I expect the Mac version
<br>>>>> does too.<br>>>>> Why not Linux?<br>>>><br>>>> It would add considerably to the complexity of the X11 VM - Xlib<br>>>> does<br>>>> not provide a dialog box call, whereas Win and Mac libraries do.
<br>>><br>>> Would it be possible to send an event/message back to the VM so<br>>> that the<br>>> image could pop up a Morphic-based dialog box?<br>><br>> Yeah, that would be the best because the experience would be
<br>> (potentially)<br>> more consistent across platforms. I've never written a Linux app,<br>> except<br>> Squeak plugin - so I would have to figure out how to do it. It just<br>> seems we<br>> should have a confirmation so a user doesn't accidentally hit the
<br>> "X" when<br>> s/he meant to hit the "Maximize" icon.<br>><br>> In fact, I'm now thinking this should be labelled a defect. What do<br>> you think?</blockquote><div><br>If the user is likely to lose data, then yes.
<br><br>I usually use Squeak full-screen, and IceWM asks me for confirmation anyway.<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>I *think* this issue with this is that Squeak has no visibility into<br>those Window Manager functions. I hope I'm incorrect, but the window<br>close message will happen and Squeak won't know about it.<br><br>
</blockquote></div><br>It can be done... see here: <br><a href="http://www.tronche.com/gui/x/icccm/sec-4.html#s-4.2.8.1">http://www.tronche.com/gui/x/icccm/sec-4.html#s-4.2.8.1</a><br><br>Michael.<br>