From 58e20abaa1075e34e32f7854c924654c93c93157 Mon Sep 17 00:00:00 2001 From: OBattler Date: Sun, 28 Jan 2018 22:15:08 +0100 Subject: [PATCH] Middle click to release mouse now works when no mouse is selected. --- src/win/win_ui.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/win/win_ui.c b/src/win/win_ui.c index 2f162dab5..9525f0e76 100644 --- a/src/win/win_ui.c +++ b/src/win/win_ui.c @@ -8,7 +8,7 @@ * * user Interface module for WinAPI on Windows. * - * Version: @(#)win_ui.c 1.0.13 2018/01/18 + * Version: @(#)win_ui.c 1.0.14 2018/01/28 * * Authors: Sarah Walker, * Miran Grca, @@ -561,7 +561,7 @@ MainWindowProcedure(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) break; case WM_MBUTTONUP: - if (mouse_get_buttons() == 2) + if (mouse_get_buttons() < 3) plat_mouse_capture(0); break;