[client,windows] release keyboard grab on minimize

This commit is contained in:
Armin Novak 2022-12-06 20:06:03 +01:00 committed by akallabeth
parent 895c22992c
commit 5a24ec2171

View File

@ -50,10 +50,10 @@ static BOOL wf_scale_mouse_event_ex(wfContext* wfc, UINT16 flags, UINT16 buttonM
INT32 y);
#endif
static BOOL g_flipping_in;
static BOOL g_flipping_out;
static BOOL g_flipping_in = FALSE;
static BOOL g_flipping_out = FALSE;
static BOOL alt_ctrl_down()
static BOOL alt_ctrl_down(void)
{
return ((GetAsyncKeyState(VK_CONTROL) & 0x8000) || (GetAsyncKeyState(VK_MENU) & 0x8000));
}
@ -430,6 +430,10 @@ LRESULT CALLBACK wf_event_proc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam
wfc->wasMaximized = FALSE;
wf_send_resize(wfc);
}
else if (wParam == SIZE_MINIMIZED)
{
g_focus_hWnd = NULL;
}
}
break;