clipboard: fix `v -gc boehm run x.v`, where x.v does c.paste() (fix #14281)

Delyan Angelov 2022-05-16 12:54:30 +03:00 committed by Jef Roosens
parent cdfdf19697
commit e814497831
Signed by: Jef Roosens
GPG Key ID: B75D4F293C7052DB
1 changed files with 1 additions and 0 deletions

View File

@ -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')