Wayland 1.26 Released With New Pointer Warp Event
- Reference: 0001646756
- News link: https://www.phoronix.com/news/Wayland-1.26-Released
- Source link:
Most significant with Wayland 1.26 is the wl_pointer.warp event. The wl_pointer.warp event addition intends to address a shortcoming where with Wayland right now in some situations the Wayland client cannot obtain the correct position information for the pointer. With wl_pointer.warp it can be used to notify a new pointer position without an end-user-initiated pointer motion event. [1]The merge request had explained as an example:
"The original wl_pointer.button event does not contain the position information. In some scenarios, the client cannot obtain the correct position information. For example, when the mouse focus is on a button and the mouse does not move but the window size changes, the client cannot update the position information through the motion event, resulting in incorrect mouse position.
Therefore, This event should be sent when the local coordinates of a pointer change as a result of surface being moved/resized/fullscreened."
Wayland 1.26 also adds a new wl_fixes.ack_global_remove request to address race conditions around global remove events. There is also a new wl_display_remove_socket_fd() function for removing previously added sockets from wl_display_add_socket_fd(). Lastly is a better debugging experiemcne with WAYLAND_DEBUG timestamps now using the HH:MM:ss.xxx format to make them easier to read and compare between logs.
More details on the Wayland 1.26 release via the [2]mailing list announcement .
[1] https://gitlab.freedesktop.org/wayland/wayland/-/merge_requests/340
[2] https://lore.freedesktop.org/wayland-devel/5On45eE2mxDczYfK0kAKrM_Bf7fI0NV07MXCBmsfDLplHSIU3cn-8JoaUj6zURfuWVB7pHDaBIPSXKenUGUdQeAZ51wpzMtGf_W-BdLgNC0=@emersion.fr/T/#u