mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
clipboard: fix v -gc boehm run x.v, where x.v does c.paste() (fix #14281)
This commit is contained in:
@@ -292,6 +292,7 @@ fn (mut cb Clipboard) start_listener() {
|
|||||||
mut sent_request := false
|
mut sent_request := false
|
||||||
mut to_be_requested := Atom(0)
|
mut to_be_requested := Atom(0)
|
||||||
for {
|
for {
|
||||||
|
time.sleep(1 * time.millisecond)
|
||||||
C.XNextEvent(cb.display, &event)
|
C.XNextEvent(cb.display, &event)
|
||||||
if unsafe { event.@type == 0 } {
|
if unsafe { event.@type == 0 } {
|
||||||
println('error')
|
println('error')
|
||||||
|
|||||||
Reference in New Issue
Block a user