Reassign ownership of libinput handle

This commit is contained in:
Drew DeVault 2017-06-10 12:21:54 -04:00
parent f479b7c8c7
commit 7a5f35b5bb
8 changed files with 64 additions and 23 deletions

View file

@ -19,6 +19,10 @@ struct wlr_backend_state {
list_t *keyboards;
};
struct wlr_input_device_state {
struct libinput_device *handle;
};
void wlr_libinput_event(struct wlr_backend_state *state,
struct libinput_event *event);
@ -26,10 +30,6 @@ struct wlr_input_device *get_appropriate_device(
enum wlr_input_device_type desired_type,
struct libinput_device *device);
struct wlr_keyboard_state {
struct libinput_device *handle;
};
void handle_keyboard_key(struct libinput_event *event,
struct libinput_device *device);
struct wlr_keyboard *wlr_libinput_keyboard_create(