Change-Id: Ib47c6115248204d9ff63ced802c557b1bf5ad5f5
config_h.set10('ENABLE_TTRACE', 1)
endif
+############ check udev function ############
+
+if cc.has_function('input_set_default_property', dependencies : dep_udev)
+ config_h.set10('HAVE_INPUT_SET_DEFAULT_PROPERTY', 1)
+endif
############ udev bits ############
int rc;
int fd = -1;
int unhandled_device = 0;
- const char *devnode = udev_device_get_devnode(udev_device);
+ const char *devnode;
char *sysname = str_sanitize(udev_device_get_sysname(udev_device));
char buf[STRERR_BUFSIZE] = {0, };
+#ifdef HAVE_INPUT_SET_DEFAULT_PROPERTY
+ if (input_set_default_property(udev_device) < 0)
+ return NULL;
+#endif
+ devnode = udev_device_get_devnode(udev_device);
+
if (!devnode) {
log_info(libinput, "%s: no device node associated\n", sysname);
goto err;