From 19136bce2c197943fa2c7476fe5b75edc87d6ac4 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sun, 1 Jan 2017 17:40:20 +0100 Subject: Fix button (right, left, middle) event on clicks on Windows. --- plugingui/nativewindow_win32.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'plugingui') diff --git a/plugingui/nativewindow_win32.cc b/plugingui/nativewindow_win32.cc index f2094af..9e80be0 100644 --- a/plugingui/nativewindow_win32.cc +++ b/plugingui/nativewindow_win32.cc @@ -136,15 +136,15 @@ LRESULT CALLBACK NativeWindowWin32::dialogProc(HWND hwnd, UINT msg, { buttonEvent->button = MouseButton::left; } - else if(msg == WM_RBUTTONUP || - msg == WM_RBUTTONDBLCLK || - msg == WM_RBUTTONDOWN) - { - buttonEvent->button = MouseButton::middle; - } else if(msg == WM_MBUTTONUP || msg == WM_MBUTTONDBLCLK || msg == WM_MBUTTONDOWN) + { + buttonEvent->button = MouseButton::middle; + } + else if(msg == WM_RBUTTONUP || + msg == WM_RBUTTONDBLCLK || + msg == WM_RBUTTONDOWN) { buttonEvent->button = MouseButton::right; } -- cgit v1.2.3