From 936ceb84b5a2c243e35dba692bee69068f946d34 Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Wed, 11 Jul 2012 14:15:04 +0100 Subject: [PATCH] wayland: Protocol change: ping event on shell_surface --- gdk/wayland/gdkwindow-wayland.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gdk/wayland/gdkwindow-wayland.c b/gdk/wayland/gdkwindow-wayland.c index ff3b92b550..a0e2d7ec9f 100644 --- a/gdk/wayland/gdkwindow-wayland.c +++ b/gdk/wayland/gdkwindow-wayland.c @@ -685,7 +685,16 @@ shell_surface_popup_done (void *data, gdk_window_hide (window); } +static void +shell_surface_ping (void *data, + struct wl_shell_surface *shell_surface, + uint32_t serial) +{ + wl_shell_surface_pong(shell_surface, serial); +} + static const struct wl_shell_surface_listener shell_surface_listener = { + shell_surface_ping, shell_surface_handle_configure, shell_surface_popup_done };