]> Pileus Git - ~andy/gtk/commitdiff
wayland: Save the serial number for the ping event
authorRob Bradford <rob@linux.intel.com>
Wed, 11 Jul 2012 16:09:23 +0000 (17:09 +0100)
committerRob Bradford <rob@linux.intel.com>
Thu, 12 Jul 2012 14:58:38 +0000 (15:58 +0100)
gdk/wayland/gdkwindow-wayland.c

index 963da15070a424adb7a3bd32f98ae4a4fdbe4afc..2544666cf82c38071664351da88dbd01eb27e309 100644 (file)
@@ -696,6 +696,13 @@ shell_surface_ping (void                    *data,
                     struct wl_shell_surface *shell_surface,
                     uint32_t                 serial)
 {
+
+  GdkWindow *window = GDK_WINDOW (data);
+  GdkWaylandDisplay *wayland_display =
+    GDK_WAYLAND_DISPLAY (gdk_window_get_display (window));
+
+  _gdk_wayland_display_update_serial (wayland_display, serial);
+
   wl_shell_surface_pong(shell_surface, serial);
 }