Skip to content

Draft: Add new heuristic to lock pointer and enter relative motion mode

Leandro Ribeiro requested to merge leandrohrb/wine:fixes-for-minetest into wayland

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 or needs_confine to WAYLAND_WindowMessage() (or we could add specific functions for checking that, needs_lock() / needs_confine()) and adding a new enum that would be passed to wayland_surface_update_pointer_confinement() so it can tell what it needs to do.

So I'm happy to hear other possible solutions for that.

Edited by Leandro Ribeiro

Merge request reports