fix refresh on El Capitan

When restoring autodisplay, need to check whether a display was
lost since display was suspended.

(cherry picked from commit 9bf18505d5)
This commit is contained in:
Matthew Flatt 2015-11-07 06:45:34 -07:00
parent 52e2cf4f7a
commit a964f3effb

View File

@ -429,7 +429,8 @@
(when (zero? flush-disabled)
(tellv cocoa enableFlushWindow)
(when (version-10.11-or-later?)
(tellv cocoa setAutodisplay: #:type _BOOL #t))))
(tellv cocoa setAutodisplay: #:type _BOOL #t)
(tellv cocoa displayIfNeeded))))
(define/public (force-window-focus)
(let ([next (get-app-front-window)])