protocol: Add wl_surface.offset
authorJonas Ådahl <jadahl@gmail.com>
Mon, 22 Mar 2021 07:56:30 +0000 (08:56 +0100)
committerSimon Ser <contact@emersion.fr>
Thu, 28 Oct 2021 12:39:39 +0000 (12:39 +0000)
commitfceabb7e9e167e1100c244bb4f460c8a346a5478
treef8b914b2c32d29e38048b3fd06daf3867d317b1b
parentf00cfda73723c4854538f7c3145ccd4f0cf5107a
protocol: Add wl_surface.offset

This is meant to address the issue where the call to 'wl_surface.attach'
is done by e.g. Vulkan, meaning applications cannot affect the values of
the offset passed as the x and y arguments.

The lack of ability to pass these is problematic when using the Vulkan
for e.g. drawing DND surfaces, as the buffer offset is used to implement
the drag icon hotspots.

Closes: https://gitlab.freedesktop.org/wayland/wayland/-/issues/148
Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
Reviewed-by: Simon Ser <contact@emersion.fr>
egl/wayland-egl.c
protocol/wayland.xml