From a3c499493b10a77562f782d9fbf988f1b93eba9b Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 9 May 2023 12:04:13 +0200 Subject: [PATCH] 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 --- protocol/wayland.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/protocol/wayland.xml b/protocol/wayland.xml index 4e9f7687..2d5cbe45 100644 --- a/protocol/wayland.xml +++ b/protocol/wayland.xml @@ -2016,9 +2016,9 @@ where (x, y) are the coordinates of the pointer location, in 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 - passed to the request. Attach must be confirmed by + passed to the request. The offset must be applied by wl_surface.commit as usual. The hotspot can also be updated by passing the currently set