adding thread names

This commit is contained in:
frese 2003-04-11 00:42:03 +00:00
parent c610256b80
commit f6eb966948
2 changed files with 9 additions and 4 deletions

View File

@ -34,7 +34,8 @@
(fill-style (fill-style tiled))
(fill-rule (fill-rule even-odd))))))
(set-window-override-redirect! dpy window #t)
(spawn* (lambda (release)
(spawn* (list 'drag-window window dwindow)
(lambda (release)
(call-with-event-channel
dpy window (event-mask exposure structure-notify)
(lambda (channel)
@ -64,6 +65,7 @@
(define (install-dragging-control channel dpy click-window dragged-window)
(spawn*
(list 'dragging-control click-window dragged-window)
(lambda (release)
(call-with-event-channel
dpy click-window

View File

@ -9,8 +9,10 @@
(define (create-grab-server dpy)
(let ((in-channel (make-channel)))
(spawn
(lambda ()
(spawn*
'grab-server
(lambda (release)
(release)
(let ((grabs '())
(event-cache '()))
(let loop ()
@ -23,7 +25,8 @@
(grab-key dpy (key:keycode first)
(key:modifiers first) (key-grab:window key-grab)
#f (grab-mode async) (grab-mode async))
(spawn* (lambda (resume)
(spawn* (list 'grabber 'on (key-grab:window key-grab))
(lambda (resume)
(call-with-event-channel
dpy (key-grab:window key-grab)
(event-mask key-press structure-notify)