]> Pileus Git - ~andy/gtk/commitdiff
wayland: Save the serial numbers for the pointer events
authorRob Bradford <rob@linux.intel.com>
Wed, 11 Jul 2012 16:08:39 +0000 (17:08 +0100)
committerRob Bradford <rob@linux.intel.com>
Thu, 12 Jul 2012 14:58:38 +0000 (15:58 +0100)
gdk/wayland/gdkdevice-wayland.c

index 6bd993a5d12171f9024437a85f8439552e0f1706..5f38718dc02a575871ca96b20f718d2b5f9cc858 100644 (file)
@@ -944,9 +944,12 @@ pointer_handle_enter (void              *data,
                       wl_fixed_t         sx,
                       wl_fixed_t         sy)
 {
-
   GdkWaylandDevice *device = data;
   GdkEvent *event;
+  GdkWaylandDisplay *wayland_display =
+    GDK_WAYLAND_DISPLAY (device->display);
+
+  _gdk_wayland_display_update_serial (wayland_display, serial);
 
   device->pointer_focus = wl_surface_get_user_data(surface);
   g_object_ref(device->pointer_focus);
@@ -982,6 +985,10 @@ pointer_handle_leave (void              *data,
 {
   GdkWaylandDevice *device = data;
   GdkEvent *event;
+  GdkWaylandDisplay *wayland_display =
+    GDK_WAYLAND_DISPLAY (device->display);
+
+  _gdk_wayland_display_update_serial (wayland_display, serial);
 
   event = gdk_event_new (GDK_LEAVE_NOTIFY);
   event->crossing.window = g_object_ref (device->pointer_focus);
@@ -1054,6 +1061,10 @@ pointer_handle_button (void              *data,
   GdkEvent *event;
   uint32_t modifier;
   int gdk_button;
+  GdkWaylandDisplay *wayland_display =
+    GDK_WAYLAND_DISPLAY (device->display);
+
+  _gdk_wayland_display_update_serial (wayland_display, serial);
 
   switch (button) {
   case 273: