mirror of
https://github.com/lvgl/lvgl.git
synced 2026-05-24 08:16:29 +08:00
fix(wayland): fix touch support by correctly setting driver data (#9486)
Co-authored-by: angel <1374600351@qq.com>
This commit is contained in:
@@ -68,6 +68,7 @@ lv_indev_t * lv_wayland_touch_create(void)
|
||||
lv_indev_t * indev = lv_indev_create();
|
||||
lv_indev_set_type(indev, LV_INDEV_TYPE_POINTER);
|
||||
lv_indev_set_read_cb(indev, touch_read);
|
||||
lv_indev_set_driver_data(indev, lv_wl_ctx.seat.touch);
|
||||
|
||||
return indev;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user