mirror of
https://github.com/glfw/glfw.git
synced 2024-11-29 21:37:27 +00:00
Fix video modes not restored when hiding OS X app
This commit is contained in:
parent
adf130965c
commit
fb6fbcf700
@ -92,6 +92,8 @@ GLFW bundles a number of dependencies in the `deps/` directory.
|
||||
- [Cocoa] Bugfix: The primary monitor would get reported as disconnected when
|
||||
entering full screen on a dual-GPU machine with automatic
|
||||
graphics switching
|
||||
- [Cocoa] Bugfix: The original video modes were not restored when the
|
||||
application was hidden
|
||||
- [X11] Bugfix: `glfwInit` would segfault on systems without RandR
|
||||
- [X11] Bugfix: The response to `_NET_WM_PING` was sent to the wrong window
|
||||
- [X11] Bugfix: Character input via XIM did not work in many cases
|
||||
|
@ -287,6 +287,14 @@ static int translateKey(unsigned int key)
|
||||
_glfwPlatformPostEmptyEvent();
|
||||
}
|
||||
|
||||
- (void)applicationDidHide:(NSNotification *)notification
|
||||
{
|
||||
int i;
|
||||
|
||||
for (i = 0; i < _glfw.monitorCount; i++)
|
||||
_glfwRestoreVideoMode(_glfw.monitors[i]);
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user