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
93f47626
Commit
93f47626
authored
35 years ago
by
ram
Browse files
Options
Downloads
Patches
Plain Diff
Moved defvar of *display-event-handlers* here so that it is defined even
if clx-ext isn't loaded.
parent
ef5b4f3c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
code/serve-event.lisp
+12
-1
12 additions, 1 deletion
code/serve-event.lisp
with
12 additions
and
1 deletion
code/serve-event.lisp
+
12
−
1
View file @
93f47626
...
...
@@ -18,6 +18,10 @@
(
export
'
(
with-fd-handler
add-fd-handler
remove-fd-handler
invalidate-descriptor
serve-event
serve-all-events
wait-until-fd-usable
))
(
in-package
"EXTENSIONS"
)
(
export
'
(
*display-event-handlers*
))
(
in-package
"LISP"
)
...
...
@@ -243,6 +247,12 @@
;;;; Serve-all-events, serve-event, and friends.
(
defvar
*display-event-handlers*
nil
"This is an alist mapping displays to user functions to be called when
SYSTEM:SERVE-EVENT notices input on a display connection. Do not modify
this directly; use EXT:ENABLE-CLX-EVENT-HANDLING. A given display
should be represented here only once."
)
;;; SERVE-ALL-EVENTS -- public
;;;
;;; Wait for up to timeout seconds for an event to happen. Make sure all
...
...
@@ -258,6 +268,7 @@
((
null
sval
)
res
)
(
setq
res
t
)))
;;; SERVE-EVENT -- public
;;;
;;; Serve a single event.
...
...
@@ -268,7 +279,7 @@
seconds) and then return, otherwise it will wait until something happens.
Server returns T if something happened and NIL otherwise."
;; First, check any X displays for any pending events.
(
dolist
(
d/h
ext::
*display-event-handlers*
)
(
dolist
(
d/h
*display-event-handlers*
)
(
let
((
d
(
car
d/h
)))
(
when
(
xlib::event-listen
d
)
(
handler-bind
((
error
#'
(
lambda
(
condx
)
...
...
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