aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2017-09-27 23:45:09 +0200
committeremersion <contact@emersion.fr>2017-09-27 23:45:09 +0200
commit241fec4d8786a0c86507d41f401ac70ec2c0c150 (patch)
tree095a4c5e52a4b6a68183b09f6363269311aadc81
parent14ab56b6c5a782653c0d9d421196926ed534eab1 (diff)
wl_shell: add wlr_wl_shell_surface_{configure,popup_done}
-rw-r--r--include/wlr/types/wlr_wl_shell.h3
-rw-r--r--types/wlr_wl_shell.c9
2 files changed, 12 insertions, 0 deletions
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);
+}