From bc34486c04a035079ea808532f311a02659642c1 Mon Sep 17 00:00:00 2001 From: emersion Date: Mon, 17 Sep 2018 21:46:39 +0200 Subject: backend/headless: add assertions --- backend/headless/input_device.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'backend/headless/input_device.c') diff --git a/backend/headless/input_device.c b/backend/headless/input_device.c index a2474aeb..ba251dd7 100644 --- a/backend/headless/input_device.c +++ b/backend/headless/input_device.c @@ -1,3 +1,4 @@ +#include #include #include #include @@ -18,7 +19,7 @@ bool wlr_input_device_is_headless(struct wlr_input_device *wlr_dev) { struct wlr_input_device *wlr_headless_add_input_device( struct wlr_backend *wlr_backend, enum wlr_input_device_type type) { struct wlr_headless_backend *backend = - (struct wlr_headless_backend *)wlr_backend; + headless_backend_from_backend(wlr_backend); struct wlr_headless_input_device *device = calloc(1, sizeof(struct wlr_headless_input_device)); -- cgit v1.2.3