michaelforney / swc

a library for making a simple Wayland compositor
MIT License
616 stars 52 forks source link

Fix for libinput 0.9 #24

Closed ghost closed 9 years ago

ghost commented 9 years ago

I have encountered with following compile error

libswc/seat.c: In function 'handle_libinput_data':
libswc/seat.c:326:21: error: too few arguments to function 'libinput_event_pointer_get_axis_value'
                     (libinput_event_pointer_get_axis_value(event));
                     ^
In file included from libswc/seat.c:43:0:
/usr/include/libinput.h:693:1: note: declared here
 libinput_event_pointer_get_axis_value(struct libinput_event_pointer *event,
 ^
libswc/seat.c:328:29: error: implicit declaration of function 'libinput_event_pointer_get_axis' [-Werror=implicit-function-declaration]
                             libinput_event_pointer_get_axis(event), amount);
                             ^

I have libinput 0.9 installed. So I write this patch to deal with it. I didn’t tested it! I have no axis devices.