libinput-seat: redirect libinput log to weston log

https://bugs.freedesktop.org/show_bug.cgi?id=77578

Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
dev
U. Artie Eoff 11 years ago committed by Kristian Høgsberg
parent 5082ad6b28
commit 71db0fd117
  1. 9
      src/libinput-seat.c

@ -251,6 +251,13 @@ udev_input_enable(struct udev_input *input)
return 0;
}
static void
libinput_log_func(enum libinput_log_priority priority, void *user_data,
const char *format, va_list args)
{
weston_vlog(format, args);
}
int
udev_input_init(struct udev_input *input, struct weston_compositor *c, struct udev *udev,
const char *seat_id)
@ -259,6 +266,8 @@ udev_input_init(struct udev_input *input, struct weston_compositor *c, struct ud
input->compositor = c;
libinput_log_set_handler(&libinput_log_func, NULL);
input->libinput = libinput_udev_create_for_seat(&libinput_interface, input,
udev, seat_id);
if (!input->libinput) {

Loading…
Cancel
Save