Fixed iconify callback not triggered by Alt+Tab.

This commit is contained in:
Camilla Berglund
2013-12-05 02:15:14 +01:00
parent 2ae46fa90a
commit 56e600d7a1
2 changed files with 15 additions and 0 deletions
+13
View File
@@ -442,6 +442,19 @@ static LRESULT CALLBACK windowProc(HWND hWnd, UINT uMsg,
return 0;
}
case WM_ACTIVATEAPP:
{
if (!wParam && IsIconic(hWnd))
{
// This is a workaround for full screen windows losing focus
// through Alt+Tab leading to windows being told they're
// unfocused and restored and then never told they're iconified
_glfwInputWindowIconify(window, GL_TRUE);
}
return 0;
}
case WM_SHOWWINDOW:
{
_glfwInputWindowVisibility(window, wParam ? GL_TRUE : GL_FALSE);