From 4efd5c7c21dfb970f5d48bea73120bb2e01c0496 Mon Sep 17 00:00:00 2001 From: "leo.lu" Date: Tue, 22 Aug 2023 14:06:17 +0800 Subject: [PATCH] Weston: ignore LIBINPUT_EVENT_POINTER_SCROLL_WHEEL libinput event --- .../weston/0009-weston-add-input-event.patch | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 package/weston/0009-weston-add-input-event.patch diff --git a/package/weston/0009-weston-add-input-event.patch b/package/weston/0009-weston-add-input-event.patch new file mode 100644 index 00000000..56b8a0c6 --- /dev/null +++ b/package/weston/0009-weston-add-input-event.patch @@ -0,0 +1,17 @@ +Weston ignore LIBINPUT_EVENT_POINTER_SCROLL_WHEEL(404) input event. + +Signed-off-by: Leo Lu + + +diff -purN a/libweston/libinput-device.c b/libweston/libinput-device.c +--- a/libweston/libinput-device.c 2023-08-22 13:50:41.901537810 +0800 ++++ b/libweston/libinput-device.c 2023-08-22 13:51:16.129770832 +0800 +@@ -565,6 +565,8 @@ evdev_device_process_event(struct libinp + handle_touch_frame(libinput_device, + libinput_event_get_touch_event(event)); + break; ++ case LIBINPUT_EVENT_POINTER_SCROLL_WHEEL: ++ return 0; + default: + handled = 0; + weston_log("unknown libinput event %d\n",