original commit: cd0b455f0c081298d17fc1b770baf4708f9a4fb7
This commit is contained in:
Matthew Flatt 2003-01-28 15:33:33 +00:00
parent 4a0a18fdb9
commit a4c2ef824c

View File

@ -1347,15 +1347,21 @@
(define (app-handler-orig ah) (define (app-handler-orig ah)
(app-handler-ref ah 1)) (app-handler-ref ah 1))
(let ([f (entry-point (let* ([running-quit? #f]
(lambda () [f (entry-point
(let ([af active-main-frame]) (lambda ()
(when af (unless running-quit?
(queue-window-callback (let ([af active-main-frame])
af (when af
(entry-point (set! running-quit? #t)
(lambda () (queue-window-callback
(send af on-exit))))))))]) af
(entry-point
(lambda ()
(dynamic-wind
void
(lambda () (send af on-exit))
(lambda () (set! running-quit? #t)))))))))))])
(wx:application-quit-handler (make-app-handler f f))) (wx:application-quit-handler (make-app-handler f f)))
(define (set-handler! who proc param) (define (set-handler! who proc param)