On Fri Nov 14 08:13:36 2025 +0000, Rémi Bernon wrote:
This looks complicated and we probably don't want to touch the X11 event queue outside of ProcessEvents. There's already `EVENT_x11_time_to_win32_time` which estimates the X server time, and it is used in `set_input_focus` for the same kind of purpose as you need here. It might not be very accurate though, and if you need it to be, maybe it would be better to find a way to detect remote vs local X server and check / assume that a local server uses `clock_gettime` / `CLOCK_MONOTONIC` for its time which I believe most if not all implementations do (or some other clock, I'm not 100% confident).
Yes, I need to take some time to figure out the best way to implement this. The timestamp property of the clipboard may be modified by different applications, so I need to find a more precise method to set it. This is to prevent incorrect settings that could cause VMware to use this timestamp for judgment, leading to errors and the inability to paste.