summaryrefslogtreecommitdiff
path: root/gdk/wayland
diff options
context:
space:
mode:
authorRob Bradford <rob@linux.intel.com>2012-07-11 19:17:45 +0100
committerRob Bradford <rob@linux.intel.com>2012-07-12 15:58:38 +0100
commit5b81186be3af44950d054bc09e5cca8fdfbf38fc (patch)
tree9733cbb11737f14d4aa8c72f2ec0c83a1978e97c /gdk/wayland
parent310fd40357a67784004f99e2a52dff9f85bdd024 (diff)
downloadgtk+-5b81186be3af44950d054bc09e5cca8fdfbf38fc.tar.gz
wayland: Protocol update: wl_pointer_set_cursor takes a serial
Diffstat (limited to 'gdk/wayland')
-rw-r--r--gdk/wayland/gdkdevice-wayland.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gdk/wayland/gdkdevice-wayland.c b/gdk/wayland/gdkdevice-wayland.c
index 5f38718dc0..6e15fa8621 100644
--- a/gdk/wayland/gdkdevice-wayland.c
+++ b/gdk/wayland/gdkdevice-wayland.c
@@ -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);