mirror of
https://github.com/labwc/labwc.git
synced 2026-04-11 08:21:13 -04:00
Prevent crash when touchscreen unconfigured
This commit is contained in:
parent
eddf67c86d
commit
eafeb3ce97
1 changed files with 1 additions and 1 deletions
|
|
@ -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 */
|
/* Fall out if mouse emulation is set */
|
||||||
struct touch_config_entry *config_entry =
|
struct touch_config_entry *config_entry =
|
||||||
touch_find_config_for_device(touch->base.name);
|
touch_find_config_for_device(touch->base.name);
|
||||||
if (config_entry->force_mouse_emulation) {
|
if (config_entry && config_entry->force_mouse_emulation) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue