summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDerek Foreman <derek.foreman@collabora.com>2022-02-04 08:02:26 -0600
committerDerek Foreman <derek.foreman@collabora.com>2023-02-24 18:44:19 +0000
commit59a0bd99bd17753346600688e8423603ffd5987f (patch)
tree387acf396dd848fc30285ac6ee2616a50c0f4501 /include
parent5e353d523ff77b3004cfe428bd1e0ba59e2c0bcc (diff)
downloadweston-59a0bd99bd17753346600688e8423603ffd5987f.tar.gz
libweston: Use weston_coord in surface committed handler
I also snuck in a trivial change to drag_surface_configure at the same time to avoid yet another micro patch. Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
Diffstat (limited to 'include')
-rw-r--r--include/libweston/libweston.h7
-rw-r--r--include/libweston/shell-utils.h3
2 files changed, 6 insertions, 4 deletions
diff --git a/include/libweston/libweston.h b/include/libweston/libweston.h
index 748a8c37..50d30aef 100644
--- a/include/libweston/libweston.h
+++ b/include/libweston/libweston.h
@@ -1704,10 +1704,11 @@ struct weston_surface {
/*
* If non-NULL, this function will be called on
* wl_surface::commit after a new buffer has been set up for
- * this surface. The integer params are the sx and sy
- * parameters supplied to wl_surface::attach.
+ * this surface. The coordinate holds the buffer offset parameters
+ * supplied to wl_surface::attach or wl_surface::offset.
*/
- void (*committed)(struct weston_surface *es, int32_t sx, int32_t sy);
+ void (*committed)(struct weston_surface *es,
+ struct weston_coord_surface new_origin);
void *committed_private;
int (*get_label)(struct weston_surface *surface, char *buf, size_t len);
diff --git a/include/libweston/shell-utils.h b/include/libweston/shell-utils.h
index 57d51f8f..988e1e82 100644
--- a/include/libweston/shell-utils.h
+++ b/include/libweston/shell-utils.h
@@ -34,7 +34,8 @@ extern "C" {
/* parameter for weston_curtain_create() */
struct weston_curtain_params {
int (*get_label)(struct weston_surface *es, char *buf, size_t len);
- void (*surface_committed)(struct weston_surface *es, int32_t sx, int32_t sy);
+ void (*surface_committed)(struct weston_surface *es,
+ struct weston_coord_surface new_origin);
void *surface_private;
float r, g, b, a;
int x, y, width, height;