clipboard: fix `v -gc boehm run x.v`, where x.v does c.paste() (fix #14281)
parent
d59f4e9479
commit
39874ae168
|
@ -292,6 +292,7 @@ fn (mut cb Clipboard) start_listener() {
|
|||
mut sent_request := false
|
||||
mut to_be_requested := Atom(0)
|
||||
for {
|
||||
time.sleep(1 * time.millisecond)
|
||||
C.XNextEvent(cb.display, &event)
|
||||
if unsafe { event.@type == 0 } {
|
||||
println('error')
|
||||
|
|
Loading…
Reference in New Issue