aboutsummaryrefslogtreecommitdiff
path: root/backend/libinput/keyboard.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-06-10 12:21:54 -0400
committerDrew DeVault <sir@cmpwn.com>2017-06-13 08:10:36 -0400
commit7a5f35b5bb2a30e46defe9ea1bd610cb06df95e8 (patch)
tree5d3f0990f8ce6c14f1421e2a292a47ee98e730a5 /backend/libinput/keyboard.c
parentf479b7c8c7aa93229c46287f774a30ac8324da1e (diff)
Reassign ownership of libinput handle
Diffstat (limited to 'backend/libinput/keyboard.c')
-rw-r--r--backend/libinput/keyboard.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/backend/libinput/keyboard.c b/backend/libinput/keyboard.c
index afae960e..158ded28 100644
--- a/backend/libinput/keyboard.c
+++ b/backend/libinput/keyboard.c
@@ -8,23 +8,10 @@
#include "common/log.h"
#include "types.h"
-static void wlr_libinput_keyboard_destroy(struct wlr_keyboard_state *state) {
- libinput_device_unref(state->handle);
- free(state);
-}
-
-static struct wlr_keyboard_impl keyboard_impl = {
- .destroy = wlr_libinput_keyboard_destroy
-};
-
struct wlr_keyboard *wlr_libinput_keyboard_create(
struct libinput_device *device) {
assert(device);
- struct wlr_keyboard_state *kbstate =
- calloc(1, sizeof(struct wlr_keyboard_state));
- kbstate->handle = device;
- libinput_device_ref(device);
- return wlr_keyboard_create(&keyboard_impl, kbstate);
+ return wlr_keyboard_create(NULL, NULL);
}
void handle_keyboard_key(struct libinput_event *event,