Draft: Add new heuristic to lock pointer and enter relative motion mode
I'm not happy with the approach (adding the message WM_WAYLAND_POINTER_SET_POS
and adding a new parameter to wayland_surface_update_pointer_confinement()
so that we can tell that is being called after a SetCursorPos()
call).
But there are multiple ways of achieving the same result, for instance:
- Move the logic to tell if
needs_lock
orneeds_confine
toWAYLAND_WindowMessage()
(or we could add specific functions for checking that,needs_lock()
/needs_confine()
) and adding a new enum that would be passed towayland_surface_update_pointer_confinement()
so it can tell what it needs to do.
So I'm happy to hear other possible solutions for that.