-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbase.rkt
37 lines (30 loc) · 1.35 KB
/
base.rkt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#lang racket/base
(require "doc-string.rkt")
(define* (make-fun-box val)
"Like a box, but the identifier is used like for parameters.
On the contrary to parameters, the value of a fun-box is shared by all threads."
(let ([var val])
(case-lambda
[() var]
[(new-val) (set! var new-val)])))
(define* current-display (make-fun-box #f))
(define* rwind-debug (make-fun-box #f))
(define* exit-rwind? (make-fun-box #f))
(define* restart-rwind? (make-fun-box #f))
(define* rwind-app-name "RWind")
(define* rwind-version '(0 1))
(define* rwind-app-description "Window manager in the Racket programming language")
(define* rwind-dir-name "rwind")
(define* rwind-user-config-file-name "config.rkt")
(define* rwind-env-config-var "RWIND_CONFIG_FILE")
(define* rwind-website "http://github.com/Metaxal/rwind")
(define* rwind-tcp-port 54321)
(define* rwind-log-file
(build-path (find-system-path 'home-dir) "rwind.log"))
(define* user-files-dir "user-files")
; Defines if a window is protected.
; Used (at least) in workspace.rkt to avoid circular dependencies with window.rkt
; (it's not pretty but that seems the most reasonnable thing to do for now.)
(define* window-user-killable? #f)
(define* (set-window-user-killable? proc)
(set! window-user-killable? proc))