summaryrefslogtreecommitdiff
path: root/clients
diff options
context:
space:
mode:
authorScott Moreau <oreaus@gmail.com>2012-04-17 19:06:18 -0600
committerKristian Høgsberg <krh@bitplanet.net>2012-04-19 12:50:47 -0400
commitff1db4a4f36be3b97f83cacc448b35a1615fe6c0 (patch)
treedadb618ee94f4f804074d54761fc3311e3b86378 /clients
parentbd3354b8b2587eef7befac958c31e9aeda29461a (diff)
Install structuring for ping-pong protocol
Diffstat (limited to 'clients')
-rw-r--r--clients/window.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/clients/window.c b/clients/window.c
index a033130..e79747b 100644
--- a/clients/window.c
+++ b/clients/window.c
@@ -1947,6 +1947,13 @@ widget_schedule_resize(struct widget *widget, int32_t width, int32_t height)
}
static void
+handle_ping(void *data, struct wl_shell_surface *shell_surface,
+ uint32_t serial)
+{
+ wl_shell_surface_pong(shell_surface, serial);
+}
+
+static void
handle_configure(void *data, struct wl_shell_surface *shell_surface,
uint32_t edges, int32_t width, int32_t height)
{
@@ -1984,6 +1991,7 @@ handle_popup_done(void *data, struct wl_shell_surface *shell_surface)
}
static const struct wl_shell_surface_listener shell_surface_listener = {
+ handle_ping,
handle_configure,
handle_popup_done
};