mirror of
https://github.com/gwm17/glfw.git
synced 2024-11-23 10:48:51 -05:00
Fixed Mac OS X bug where request for one fullscreen window blacks out other monitors
This commit is contained in:
parent
fd4ea8bc25
commit
d3f22b8a04
|
@ -58,8 +58,12 @@ static void enterFullscreenMode(_GLFWwindow* window)
|
||||||
|
|
||||||
_glfwSetVideoMode(window->monitor, &window->videoMode);
|
_glfwSetVideoMode(window->monitor, &window->videoMode);
|
||||||
|
|
||||||
|
NSDictionary *opts = [NSDictionary dictionaryWithObjectsAndKeys:
|
||||||
|
[NSNumber numberWithBool:NO], NSFullScreenModeAllScreens,
|
||||||
|
nil];
|
||||||
|
|
||||||
[window->ns.view enterFullScreenMode:window->monitor->ns.screen
|
[window->ns.view enterFullScreenMode:window->monitor->ns.screen
|
||||||
withOptions:nil];
|
withOptions:opts];
|
||||||
}
|
}
|
||||||
|
|
||||||
// Leave fullscreen mode
|
// Leave fullscreen mode
|
||||||
|
|
Loading…
Reference in New Issue
Block a user