Skip to content

Commit

Permalink
Fix mouse middle button release event mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
seasonyuu committed Sep 11, 2024
1 parent 52ff678 commit 798418e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/libuiohook.patch
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 798418e

Please sign in to comment.