#| -*-Scheme-*-
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/runtime.pkg,v 14.140 1992/03/25 23:51:57 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/runtime.pkg,v 14.141 1992/03/26 00:01:27 cph Exp $
Copyright (c) 1988-92 Massachusetts Institute of Technology
x-graphics/set-window-name
x-graphics/starbase-filename
x-graphics/withdraw-window
+ x-graphics:auto-raise?
x-image/destroy
x-image/draw
x-image/draw-subimage
#| -*-Scheme-*-
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/x11graph.scm,v 1.16 1992/03/20 05:18:02 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/x11graph.scm,v 1.17 1992/03/26 00:01:18 cph Exp $
Copyright (c) 1989-92 Massachusetts Institute of Technology
\f
;;;; Standard Operations
+(define x-graphics:auto-raise? false)
+
(define-structure (x-window (conc-name x-window/)
(constructor make-x-window (xw display)))
xw
(define-integrable (x-graphics-device/xd device)
(x-display/xd (x-window/display (graphics-device/descriptor device))))
+(define-integrable (x-graphics-device/mapped? device)
+ (x-window/mapped? (graphics-device/descriptor device)))
+
+(define-integrable (x-graphics-device/visibility device)
+ (x-window/visibility (graphics-device/descriptor device)))
+
(define (x-graphics/open display geometry #!optional suppress-map?)
(let ((display
(if (x-display? display)
(x-graphics-draw-string (x-graphics-device/xw device) x y string))
(define (x-graphics/flush device)
+ (if (and x-graphics:auto-raise?
+ (x-graphics-device/mapped? device)
+ (not (eq? 'UNOBSCURED (x-graphics-device/visibility device))))
+ (x-graphics/raise-window device))
(x-display-flush (x-graphics-device/xd device)))
(define (x-graphics/move-cursor device x y)
#| -*-Scheme-*-
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/runtime/runtime.pkg,v 14.140 1992/03/25 23:51:57 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/runtime/runtime.pkg,v 14.141 1992/03/26 00:01:27 cph Exp $
Copyright (c) 1988-92 Massachusetts Institute of Technology
x-graphics/set-window-name
x-graphics/starbase-filename
x-graphics/withdraw-window
+ x-graphics:auto-raise?
x-image/destroy
x-image/draw
x-image/draw-subimage