From eafeb3ce97d14d70cca9e74ec29c84c9d62b1a86 Mon Sep 17 00:00:00 2001 From: Simon Long Date: Sun, 20 Oct 2024 15:16:28 +0100 Subject: [PATCH] Prevent crash when touchscreen unconfigured --- src/input/touch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/input/touch.c b/src/input/touch.c index ef85a18b..683490f0 100644 --- a/src/input/touch.c +++ b/src/input/touch.c @@ -27,7 +27,7 @@ touch_get_coords(struct seat *seat, struct wlr_touch *touch, double x, double y, /* Fall out if mouse emulation is set */ struct touch_config_entry *config_entry = touch_find_config_for_device(touch->base.name); - if (config_entry->force_mouse_emulation) { + if (config_entry && config_entry->force_mouse_emulation) { return NULL; }