void-packages/srcpkgs/clutter/patches/evdev-0.6.patch

34 lines
1.3 KiB
Diff

--- clutter/evdev/clutter-device-manager-evdev.c.orig 2014-01-11 20:23:48.666461064 +0100
+++ clutter/evdev/clutter-device-manager-evdev.c 2014-01-11 20:24:23.951600220 +0100
@@ -605,11 +605,11 @@ sync_source (ClutterEventSource *source)
const gchar *device_path;
/* We read a SYN_DROPPED, ignore it and sync the device */
- err = libevdev_next_event (source->dev, LIBEVDEV_READ_SYNC, &ev);
+ err = libevdev_next_event (source->dev, LIBEVDEV_READ_FLAG_SYNC, &ev);
while (err == 1)
{
dispatch_one_event (source, &ev);
- err = libevdev_next_event (source->dev, LIBEVDEV_READ_SYNC, &ev);
+ err = libevdev_next_event (source->dev, LIBEVDEV_READ_FLAG_SYNC, &ev);
}
if (err != -EAGAIN && CLUTTER_HAS_DEBUG (EVENT))
@@ -664,7 +664,7 @@ clutter_event_dispatch (GSource *g_s
if (clutter_events_pending ())
goto queue_event;
- err = libevdev_next_event (source->dev, LIBEVDEV_READ_NORMAL, &ev);
+ err = libevdev_next_event (source->dev, LIBEVDEV_READ_FLAG_NORMAL, &ev);
while (err != -EAGAIN)
{
if (err == 1)
@@ -677,7 +677,7 @@ clutter_event_dispatch (GSource *g_s
goto out;
}
- err = libevdev_next_event (source->dev, LIBEVDEV_READ_NORMAL, &ev);
+ err = libevdev_next_event (source->dev, LIBEVDEV_READ_FLAG_NORMAL, &ev);
}
queue_event: