1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-23 02:38:52 -05:00

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

View File

@ -47,6 +47,8 @@ guide in the GLFW documentation.
unfocused windows unfocused windows
- [Win32] Bugfix: Cursor was not properly re-centered over odd-sized windows - [Win32] Bugfix: Cursor was not properly re-centered over odd-sized windows
- [Win32] Bugfix: Negative window positions were reported incorrectly - [Win32] Bugfix: Negative window positions were reported incorrectly
- [Win32] Bugfix: The iconify callback was not triggered when switching away
from a full screen window using Alt+Tab
- [Cocoa] Added dependency on CoreVideo framework for refresh rate retrieval - [Cocoa] Added dependency on CoreVideo framework for refresh rate retrieval
- [Cocoa] Enabled Lion full screen for resizable windowed mode windows - [Cocoa] Enabled Lion full screen for resizable windowed mode windows
- [Cocoa] Moved to Cocoa API for application transformation and activation - [Cocoa] Moved to Cocoa API for application transformation and activation

View File

@ -442,6 +442,19 @@ static LRESULT CALLBACK windowProc(HWND hWnd, UINT uMsg,
return 0; 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: case WM_SHOWWINDOW:
{ {
_glfwInputWindowVisibility(window, wParam ? GL_TRUE : GL_FALSE); _glfwInputWindowVisibility(window, wParam ? GL_TRUE : GL_FALSE);