From 39874ae1689345b82c588e56268b57f7081fa254 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Mon, 16 May 2022 12:54:30 +0300 Subject: [PATCH] clipboard: fix `v -gc boehm run x.v`, where x.v does c.paste() (fix #14281) --- vlib/clipboard/x11/clipboard.c.v | 1 + 1 file changed, 1 insertion(+) diff --git a/vlib/clipboard/x11/clipboard.c.v b/vlib/clipboard/x11/clipboard.c.v index 7c54111b02..df996a2a71 100644 --- a/vlib/clipboard/x11/clipboard.c.v +++ b/vlib/clipboard/x11/clipboard.c.v @@ -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')