From 241fec4d8786a0c86507d41f401ac70ec2c0c150 Mon Sep 17 00:00:00 2001 From: emersion Date: Wed, 27 Sep 2017 23:45:09 +0200 Subject: wl_shell: add wlr_wl_shell_surface_{configure,popup_done} --- include/wlr/types/wlr_wl_shell.h | 3 +++ types/wlr_wl_shell.c | 9 +++++++++ 2 files changed, 12 insertions(+) diff --git a/include/wlr/types/wlr_wl_shell.h b/include/wlr/types/wlr_wl_shell.h index 92c35d7d..03c0da34 100644 --- a/include/wlr/types/wlr_wl_shell.h +++ b/include/wlr/types/wlr_wl_shell.h @@ -103,5 +103,8 @@ struct wlr_wl_shell *wlr_wl_shell_create(struct wl_display *display); void wlr_wl_shell_destroy(struct wlr_wl_shell *wlr_wl_shell); void wlr_wl_shell_surface_ping(struct wlr_wl_shell_surface *surface); +void wlr_wl_shell_surface_configure(struct wlr_wl_shell_surface *surface, + uint32_t edges, int32_t width, int32_t height); +void wlr_wl_shell_surface_popup_done(struct wlr_wl_shell_surface *surface); #endif diff --git a/types/wlr_wl_shell.c b/types/wlr_wl_shell.c index 4c3aaefc..e418b3d7 100644 --- a/types/wlr_wl_shell.c +++ b/types/wlr_wl_shell.c @@ -406,3 +406,12 @@ void wlr_wl_shell_surface_ping(struct wlr_wl_shell_surface *surface) { surface->shell->ping_timeout); wl_shell_surface_send_ping(surface->resource, surface->ping_serial); } + +void wlr_wl_shell_surface_configure(struct wlr_wl_shell_surface *surface, + uint32_t edges, int32_t width, int32_t height) { + wl_shell_surface_send_configure(surface->resource, edges, width, height); +} + +void wlr_wl_shell_surface_popup_done(struct wlr_wl_shell_surface *surface) { + wl_shell_surface_send_popup_done(surface->resource); +} -- cgit v1.2.3