From 798418e8ead8d56e06c4291eed7caf4a55071ec7 Mon Sep 17 00:00:00 2001 From: seasonyuu Date: Wed, 11 Sep 2024 15:28:56 +0800 Subject: [PATCH] Fix mouse middle button release event mistake --- src/libuiohook.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/libuiohook.patch b/src/libuiohook.patch index 92f77f0..0ad903a 100644 --- a/src/libuiohook.patch +++ b/src/libuiohook.patch @@ -1,3 +1,16 @@ +diff --git a/src/darwin/input_hook.c b/src/darwin/input_hook.c +index e6cd6ce..04d040b 100644 +--- a/src/darwin/input_hook.c ++++ b/src/darwin/input_hook.c +@@ -958,7 +958,7 @@ CGEventRef hook_event_proc(CGEventTapProxy tap_proxy, CGEventType type, CGEventR + unset_modifier_mask(MOUSE_BUTTON5); + } + +- process_button_pressed(timestamp, event_ref, button); ++ process_button_released(timestamp, event_ref, button); + } + break; + diff --git a/src/windows/input_helper.c b/src/windows/input_helper.c index e690021..0d383e0 100644 --- a/src/windows/input_helper.c