Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
cmucl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Carl Shapiro
cmucl
Commits
f9f611c8
Commit
f9f611c8
authored
34 years ago
by
chiles
Browse files
Options
Downloads
Patches
Plain Diff
Modified EXT:OPEN-CLX-DISPLAY to set XLIB:DISPLAY-DEFAULT-SCREEN to the
screen specified by the user before returning the display.
parent
2f2d4341
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
code/clx-ext.lisp
+14
-11
14 additions, 11 deletions
code/clx-ext.lisp
with
14 additions
and
11 deletions
code/clx-ext.lisp
+
14
−
11
View file @
f9f611c8
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;;
;;;
(
ext:file-comment
(
ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/clx-ext.lisp,v 1.
4
1991/0
2/08 13:31:25 ram
Exp $"
)
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/clx-ext.lisp,v 1.
5
1991/0
3/25 15:51:13 chiles
Exp $"
)
;;;
;;;
;;; **********************************************************************
;;; **********************************************************************
;;;
;;;
...
@@ -45,7 +45,9 @@
...
@@ -45,7 +45,9 @@
"Parses a display specification including display and screen numbers.
"Parses a display specification including display and screen numbers.
This returns nil when there is no DISPLAY environment variable. If string
This returns nil when there is no DISPLAY environment variable. If string
is non-nil, and any fields are missing in the specification, this signals an
is non-nil, and any fields are missing in the specification, this signals an
error. This returns the display and screen objects."
error. If you specify a screen, then this sets XLIB:DISPLAY-DEFAULT-SCREEN
to that screen since CLX initializes this form to the first of
XLIB:SCREEN-ROOTS. This returns the display and screen objects."
(
when
string
(
when
string
(
let*
((
string
(
coerce
string
'simple-string
))
(
let*
((
string
(
coerce
string
'simple-string
))
(
length
(
length
string
))
(
length
(
length
string
))
...
@@ -80,15 +82,16 @@
...
@@ -80,15 +82,16 @@
(
parse-integer
string
:start
start
(
parse-integer
string
:start
start
:end
second-dot
)))))))))))
:end
second-dot
)))))))))))
(
let
((
display
(
xlib:open-display
host-name
:display
display-num
)))
(
let
((
display
(
xlib:open-display
host-name
:display
display-num
)))
(
cond
(
screen-num
(
when
screen-num
(
let*
((
screens
(
xlib:display-roots
display
))
(
let*
((
screens
(
xlib:display-roots
display
))
(
num-screens
(
length
screens
)))
(
num-screens
(
length
screens
)))
(
when
(
>=
screen-num
num-screens
)
(
when
(
>=
screen-num
num-screens
)
(
xlib:close-display
display
)
(
xlib:close-display
display
)
(
error
"No such screen number (~D)."
screen-num
))
(
error
"No such screen number (~D)."
screen-num
))
(
values
display
(
elt
screens
screen-num
))))
(
setf
(
xlib:display-default-screen
display
)
(
t
(
elt
screens
screen-num
))))
(
values
display
(
xlib:display-default-screen
display
))))))))
(
values
display
(
xlib:display-default-screen
display
))))))
;;;; Font Path Manipulation
;;;; Font Path Manipulation
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment