diff options
author | Dominique Martinet <asmadeus@codewreck.org> | 2017-08-14 16:07:00 +0200 |
---|---|---|
committer | Dominique Martinet <asmadeus@codewreck.org> | 2017-08-14 16:22:31 +0200 |
commit | ba20d5b3cae29a90b1d66c9d53f295a7c41c932e (patch) | |
tree | c1a6661f8e55666c33d8bec6d0d55e14df194339 /backend | |
parent | bd67849c03a13b2a12d35fb068d30eb0f8ea3cc9 (diff) |
Refactor out wlr_touch_state
Diffstat (limited to 'backend')
-rw-r--r-- | backend/libinput/touch.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/backend/libinput/touch.c b/backend/libinput/touch.c index 5d990d3c..9e08d028 100644 --- a/backend/libinput/touch.c +++ b/backend/libinput/touch.c @@ -10,7 +10,13 @@ struct wlr_touch *wlr_libinput_touch_create( struct libinput_device *libinput_dev) { assert(libinput_dev); - return wlr_touch_create(NULL, NULL); + struct wlr_touch *wlr_touch = calloc(1, sizeof(struct wlr_touch)); + if (!wlr_touch) { + wlr_log(L_ERROR, "Unable to allocate wlr_touch"); + return NULL; + } + wlr_touch_init(wlr_touch, NULL); + return wlr_touch; } void handle_touch_down(struct libinput_event *event, |