fix clipboard eventspace problem
This commit is contained in:
parent
1d09202412
commit
85ce22d4f7
|
@ -14,6 +14,7 @@
|
||||||
(define types null)
|
(define types null)
|
||||||
(define es (current-eventspace))
|
(define es (current-eventspace))
|
||||||
(define/public (get-client-eventspace) es)
|
(define/public (get-client-eventspace) es)
|
||||||
|
(define/public (set-client-eventspace e) (set! es e))
|
||||||
(def/public (same-eventspace? [eventspace? e])
|
(def/public (same-eventspace? [eventspace? e])
|
||||||
(eq? e es))
|
(eq? e es))
|
||||||
(def/public (get-types)
|
(def/public (get-types)
|
||||||
|
@ -47,6 +48,7 @@
|
||||||
|
|
||||||
(def/public (set-clipboard-client [clipboard-client% c]
|
(def/public (set-clipboard-client [clipboard-client% c]
|
||||||
[exact-integer? timestamp])
|
[exact-integer? timestamp])
|
||||||
|
(send c set-client-eventspace (current-eventspace))
|
||||||
(send driver set-client c (send c get-types)))
|
(send driver set-client c (send c get-types)))
|
||||||
|
|
||||||
(super-new))
|
(super-new))
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
(define-local-member-name
|
(define-local-member-name
|
||||||
;; clipboard-client%:
|
;; clipboard-client%:
|
||||||
get-client-eventspace
|
get-client-eventspace
|
||||||
|
set-client-eventspace
|
||||||
|
|
||||||
;; cursor%
|
;; cursor%
|
||||||
get-driver)
|
get-driver)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user