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