[NOT AN ISSUE] SDL_SetWindowMouseRect() doesn't confine the cursor on Weston until confinement area is clicked
Hello,
The commonly used SDL_SetWindowMouseRect()
SDL2 function doesn't confine the cursor on the Weston compositor.
This fun
Now, SDL_SetWindowMouseRect()
uses Wayland_input_confine_pointer()
.
The code to this particular function is here:
I have been trying to debug it. The values passed to wl_region_add()
are correct, so it seems that either zwp_pointer_constraints_v1_confine_pointer()
or zwp_confined_pointer_v1_add_listener()
.
Sometimes, however, in Scummvm things seem to work and cursor is indeed confined in fullscreen mode + aspect ratio correction.
Things work perfectly well on Sway, but in tinywl cursor isn't confined either.
Not easy to debug because setting breakpoints in zwp_pointer_constraints_v1_confine_pointer()
or zwp_confined_pointer_v1_add_listener()
are both done via wl_proxy_marshal_flags()
.
Any idea on what could be happening here?