]> Pileus Git - ~andy/gtk/commitdiff
wayland: Protocol update: wl_pointer_set_cursor takes a serial
authorRob Bradford <rob@linux.intel.com>
Wed, 11 Jul 2012 18:17:45 +0000 (19:17 +0100)
committerRob Bradford <rob@linux.intel.com>
Thu, 12 Jul 2012 14:58:38 +0000 (15:58 +0100)
gdk/wayland/gdkdevice-wayland.c

index 5f38718dc02a575871ca96b20f718d2b5f9cc858..6e15fa86211600fd7efe03df64be79ec7316dbd2 100644 (file)
@@ -157,6 +157,8 @@ gdk_device_core_set_window_cursor (GdkDevice *device,
                                    GdkCursor *cursor)
 {
   GdkWaylandDevice *wd = GDK_DEVICE_CORE(device)->device;
+  GdkWaylandDisplay *wayland_display =
+    GDK_WAYLAND_DISPLAY (gdk_window_get_display (window));
   struct wl_buffer *buffer;
   int x, y, w, h;
 
@@ -172,7 +174,10 @@ gdk_device_core_set_window_cursor (GdkDevice *device,
     }
 
   buffer = _gdk_wayland_cursor_get_buffer (cursor, &x, &y, &w, &h);
-  wl_pointer_set_cursor (wd->wl_pointer, wd->time, wd->pointer_surface, x, y);
+  wl_pointer_set_cursor (wd->wl_pointer,
+                         _gdk_wayland_display_get_serial (wayland_display),
+                         wd->pointer_surface,
+                         x, y);
   wl_surface_attach (wd->pointer_surface, buffer, 0, 0);
   wl_surface_damage (wd->pointer_surface,  0, 0, w, h);