mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-03 07:33:55 +00:00
Fixed #3 mouse is_drag error on x11
This commit is contained in:
parent
f2a0505446
commit
3028bf0bb1
2
vendor/github.com/robotn/gohook/hook/x11/hook_c.h
generated
vendored
2
vendor/github.com/robotn/gohook/hook/x11/hook_c.h
generated
vendored
@ -746,7 +746,7 @@ void hook_event_proc(XPointer closeure, XRecordInterceptData *recorded_data) {
|
||||
|
||||
// Check the upper half of virtual modifiers for non-zero
|
||||
// values and set the mouse dragged flag.
|
||||
hook->input.mouse.is_dragged = (event.mask >> 8 > 0);
|
||||
hook->input.mouse.is_dragged = ((event.mask & 0x1F00) > 0);
|
||||
if (hook->input.mouse.is_dragged) {
|
||||
// Create Mouse Dragged event.
|
||||
event.type = EVENT_MOUSE_DRAGGED;
|
||||
|
Loading…
Reference in New Issue
Block a user