@GrecKo "Oh, I did that, but it's a bad solution and mostly a crutch, as I know that all display servers on all platforms offer mouse capture functionality at the windowing system level, and that's exactly what should be used.
The problem with setPos is that it's an attempt to modify a system component – a direct security violation – and new window managers like Wayland directly forbid such a function. I've written about this here and here, but I haven't found a relatively simple solution to this problem. Currently, I'm using the outdated xWayland for Wayland to redirect setPos through the X11 API where such functionality is allowed.
However, using xWayland for games means huge FPS losses for no good reason, which is especially noticeable with Vulkan, and that's extremely frustrating.
I need a way to directly subscribe to the cursor capture functionality, so that for a specific window, the display server starts sending deltas instead of absolute coordinates. These deltas should always be received, regardless of where the cursor physically lands."