From 0d2b3d1d68fc3be692acbfaee39fd6b30c3f1f11 Mon Sep 17 00:00:00 2001 From: David Capello Date: Thu, 7 Aug 2014 08:44:30 -0300 Subject: [PATCH] Don't show Win32 scrollbar popup when the window is right-clicked in the scrollbars area --- src/she/alleg4/she_alleg4.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/she/alleg4/she_alleg4.cpp b/src/she/alleg4/she_alleg4.cpp index d1196f152..3101731f3 100644 --- a/src/she/alleg4/she_alleg4.cpp +++ b/src/she/alleg4/she_alleg4.cpp @@ -210,6 +210,10 @@ static LRESULT CALLBACK wndproc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lpara msg == WM_RBUTTONUP ? Event::RightButton: msg == WM_MBUTTONUP ? Event::MiddleButton: Event::NoneButton); queue_event(ev); + + // Avoid popup menu for scrollbars + if (msg == WM_RBUTTONUP) + return 0; break; }