From 6919acd6654202f673098cec4ac2ed45d91a3a6d Mon Sep 17 00:00:00 2001 From: ts-korhonen Date: Tue, 13 Apr 2021 23:20:58 +0300 Subject: [PATCH] win_opengl: add routing for buttondowns to fix mouse capturing with recent changes to master --- src/win/win_opengl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/win/win_opengl.c b/src/win/win_opengl.c index ca88a96fc..2bb1ea498 100644 --- a/src/win/win_opengl.c +++ b/src/win/win_opengl.c @@ -247,7 +247,9 @@ static void winmessage_hook(void* userdata, void* hWnd, unsigned int message, Ui switch (message) { case WM_LBUTTONUP: + case WM_LBUTTONDOWN: case WM_MBUTTONUP: + case WM_MBUTTONDOWN: if (!*msg_data->fullscreen) { /* Mouse events that enter and exit capture. */