Call `keyboard-active?' in the `flush-output' operation, to allow the
authorChris Hanson <org/chris-hanson/cph>
Tue, 25 Apr 1989 01:58:05 +0000 (01:58 +0000)
committerChris Hanson <org/chris-hanson/cph>
Tue, 25 Apr 1989 01:58:05 +0000 (01:58 +0000)
screen to process input events periodically.  This isn't the "right
thing", but it will help.

v7/src/edwin/winout.scm

index d2719db66acd526117b6d86f964ccc5aee3976d1..5edad602c102f88d643e29d8c90afbc0a1f850e5 100644 (file)
@@ -1,6 +1,6 @@
 ;;; -*-Scheme-*-
 ;;;
-;;;    $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/edwin/winout.scm,v 1.1 1989/03/14 08:08:57 cph Exp $
+;;;    $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/edwin/winout.scm,v 1.2 1989/04/25 01:58:05 cph Exp $
 ;;;
 ;;;    Copyright (c) 1986, 1989 Massachusetts Institute of Technology
 ;;;
          (region-insert-string! point string)))))
 
 (define (operation/flush-output port)
+  ;; Calling `keyboard-active?' gives the screen abstraction a chance
+  ;; to do refresh if it needs to (e.g. if an X exposure event is
+  ;; received).
+  (keyboard-active? 0)
   (let ((window (output-port/state port)))
     (if (window-needs-redisplay? window)
        (window-direct-update! window false))))