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

@ -3,10 +3,12 @@
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <libinput.h>
#include <wlr/session.h>
#include <wlr/backend/interface.h>
#include <wlr/backend/drm.h>
#include <wlr/backend/libinput.h>
#include "backend/libinput.h"
#include "backend/udev.h"
#include "common/log.h"
@ -64,3 +66,7 @@ error_udev:
error:
return NULL;
}
struct libinput_device *wlr_libinput_get_device_handle(struct wlr_input_device *dev) {
return dev->state->handle;
}