diff options
| author | Jonas Ådahl <jadahl@gmail.com> | 2021-03-22 08:56:30 +0100 |
|---|---|---|
| committer | Simon Ser <contact@emersion.fr> | 2021-10-28 12:39:39 +0000 |
| commit | fceabb7e9e167e1100c244bb4f460c8a346a5478 (patch) | |
| tree | f8b914b2c32d29e38048b3fd06daf3867d317b1b /egl | |
| parent | client: handle fcntl error on bad fd in wl_display_connect (diff) | |
| download | wayland-fceabb7e9e167e1100c244bb4f460c8a346a5478.tar wayland-fceabb7e9e167e1100c244bb4f460c8a346a5478.tar.gz wayland-fceabb7e9e167e1100c244bb4f460c8a346a5478.tar.bz2 wayland-fceabb7e9e167e1100c244bb4f460c8a346a5478.tar.lz wayland-fceabb7e9e167e1100c244bb4f460c8a346a5478.tar.xz wayland-fceabb7e9e167e1100c244bb4f460c8a346a5478.tar.zst wayland-fceabb7e9e167e1100c244bb4f460c8a346a5478.zip | |
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>
Diffstat (limited to 'egl')
| -rw-r--r-- | egl/wayland-egl.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/egl/wayland-egl.c b/egl/wayland-egl.c index a60f899..36a3471 100644 --- a/egl/wayland-egl.c +++ b/egl/wayland-egl.c @@ -35,6 +35,20 @@ #include "wayland-util.h" +/** Resize the EGL window + * + * \param egl_window A pointer to a struct wl_egl_window + * \param width The new width + * \param height The new height + * \param dx Offset on the X axis + * \param dy Offset on the Y axis + * + * Note that applications should prefer using the wl_surface.offset request if + * the associated wl_surface has the interface version 5 or higher. + * + * If the wl_surface.offset request is used, applications MUST pass 0 to both + * dx and dy. + */ WL_EXPORT void wl_egl_window_resize(struct wl_egl_window *egl_window, int width, int height, |
