diff --git a/vendor/github.com/robotn/gohook/hook/x11/hook_c.h b/vendor/github.com/robotn/gohook/hook/x11/hook_c.h index 4733051..cc9c5e6 100644 --- a/vendor/github.com/robotn/gohook/hook/x11/hook_c.h +++ b/vendor/github.com/robotn/gohook/hook/x11/hook_c.h @@ -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;