title: Rebol / Red VID: why is close event immediately sent ?
body: <p>I inspired from <a href="http://www.codeconscious.com/rebol/view-notes.html" rel="nofollow noreferrer">http://www.codeconscious.com/rebol/view-notes.html</a></p>
  
  <p>I don't understand: why is close sent immediately: that's not what I want and I would expect it to be sent when I click on Window close</p>
  
  <pre><code>    query-on-close: func[face event][
          print "query-on-close"
          remove-event-func :query-on-close
          RETURN event    
  
      ]
  
      view layout [
          do [ insert-event-func :query-on-close ]
      ]
  </code></pre>