win_opengl: Fix main window staying inactive when clicked.

This commit is contained in:
ts-korhonen
2021-04-24 16:13:21 +03:00
parent ce51518bd7
commit 147175677d

View File

@@ -185,8 +185,13 @@ static void handle_window_messages(UINT message, WPARAM wParam, LPARAM lParam, i
case WM_LBUTTONDOWN:
case WM_MBUTTONUP:
case WM_MBUTTONDOWN:
case WM_RBUTTONUP:
case WM_RBUTTONDOWN:
if (!fullscreen)
{
/* Bring main window to front. */
SetForegroundWindow(GetAncestor(parent, GA_ROOT));
/* Mouse events that enter and exit capture. */
PostMessage(parent, message, wParam, lParam);
}