diff options
author | Dominique Martinet <asmadeus@codewreck.org> | 2017-08-14 15:55:48 +0200 |
---|---|---|
committer | Dominique Martinet <asmadeus@codewreck.org> | 2017-08-14 16:22:31 +0200 |
commit | 53e7bebd2381318b9edcbc8d305d4ec2bed9b3ce (patch) | |
tree | d690768446465c1fffffbe62096b1f69a5b8f950 /backend/libinput | |
parent | 0a3246ad979d768933a68b81e738853bd7c964a2 (diff) |
Refactor out wlr_pointer_state
Diffstat (limited to 'backend/libinput')
-rw-r--r-- | backend/libinput/pointer.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/backend/libinput/pointer.c b/backend/libinput/pointer.c index c2c47592..8bda205d 100644 --- a/backend/libinput/pointer.c +++ b/backend/libinput/pointer.c @@ -10,7 +10,13 @@ struct wlr_pointer *wlr_libinput_pointer_create( struct libinput_device *libinput_dev) { assert(libinput_dev); - return wlr_pointer_create(NULL, NULL); + struct wlr_pointer *wlr_pointer = calloc(1, sizeof(struct wlr_pointer)); + if (!wlr_pointer) { + wlr_log(L_ERROR, "Unable to allocate wlr_pointer"); + return NULL; + } + wlr_pointer_init(wlr_pointer, NULL); + return wlr_pointer; } void handle_pointer_motion(struct libinput_event *event, |