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:
committed by
Daniel Stone
parent
4564a40cb0
commit
5ffa1962a5
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user