-1

I wrote a small C wrapper for Qt's QClipboard class so I can access it from my Go app. Part of my Go app repeatedly accesses the clipboard. On MacOS, regardless of whether the loop is in a goroutine or a part of the main thread, accessing is as fast as expected. However, on Linux under X11, if the loop is in the main thread, it's as fast as on MacOS. However, if the loop is in a goroutine, accessing is inconsistent. I think the goroutine messes with X11's events, but I'm not sure.

The problem is, if I run the loop from the main thread, and I try to paste (with Ctrl+V), the program hangs.

DrownedSuccess
  • 123
  • 1
  • 8

0 Answers0