compositor: Add support for wl_surface.offset()

This allows for setting a buffer offset without having to make it part
of the wl_surface.attach request. This is useful for e.g. setting a DND
surface icon hotspot offset when using Vulkan; or doing the same with
EGL without having to use wl_egl_window_resize().

Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
This commit is contained in:
Jonas Ådahl
2021-03-22 14:39:55 +01:00
committed by Daniel Stone
parent 4564a40cb0
commit 5ffa1962a5
2 changed files with 29 additions and 5 deletions
+1
View File
@@ -1538,6 +1538,7 @@ struct weston_surface_state {
int newly_attached;
struct weston_buffer *buffer;
struct wl_listener buffer_destroy_listener;
int32_t sx;
int32_t sy;