protocol: refer to wl_surface.offset in set_cursor

The offset in wl_surface.attach has been superseded by
wl_surface.offset. Refer to the new request instead of using the
deprecated one.

Signed-off-by: Simon Ser <contact@emersion.fr>
This commit is contained in:
Simon Ser 2023-05-09 12:04:13 +02:00
parent f3026c916e
commit a3c499493b

View File

@ -2016,9 +2016,9 @@
where (x, y) are the coordinates of the pointer location, in where (x, y) are the coordinates of the pointer location, in
surface-local coordinates. surface-local coordinates.
On surface.attach requests to the pointer surface, hotspot_x On wl_surface.offset requests to the pointer surface, hotspot_x
and hotspot_y are decremented by the x and y parameters and hotspot_y are decremented by the x and y parameters
passed to the request. Attach must be confirmed by passed to the request. The offset must be applied by
wl_surface.commit as usual. wl_surface.commit as usual.
The hotspot can also be updated by passing the currently set The hotspot can also be updated by passing the currently set