From 216f276cb1833e2bc398affac2edd4bad546deaa Mon Sep 17 00:00:00 2001 From: Federico Terzi Date: Mon, 16 Mar 2020 21:36:01 +0100 Subject: [PATCH] Fix bug that prevented Windows context menu from working correctly. --- native/libwinbridge/bridge.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/native/libwinbridge/bridge.cpp b/native/libwinbridge/bridge.cpp index 3a771b9..dfb6d42 100644 --- a/native/libwinbridge/bridge.cpp +++ b/native/libwinbridge/bridge.cpp @@ -381,7 +381,7 @@ int32_t initialize(void * self, wchar_t * ico_path, wchar_t * bmp_path) { Rid[1].usUsagePage = 0x01; Rid[1].usUsage = 0x02; - Rid[1].dwFlags = RIDEV_NOLEGACY | RIDEV_INPUTSINK; // adds HID mouse and also ignores legacy mouse messages + Rid[1].dwFlags = RIDEV_INPUTSINK; // adds HID mouse and also ignores legacy mouse messages Rid[1].hwndTarget = window; if (RegisterRawInputDevices(Rid, 2, sizeof(Rid[0])) == FALSE) { // Something went wrong, error.