Fixed Mac OS X bug where request for one fullscreen window blacks out other monitors

master
Pieroman ago%!(EXTRA string=12 years)
parent fd4ea8bc25
commit d3f22b8a04
  1. 6
      src/cocoa_window.m

@ -58,8 +58,12 @@ static void enterFullscreenMode(_GLFWwindow* window)
_glfwSetVideoMode(window->monitor, &window->videoMode);
NSDictionary *opts = [NSDictionary dictionaryWithObjectsAndKeys:
[NSNumber numberWithBool:NO], NSFullScreenModeAllScreens,
nil];
[window->ns.view enterFullScreenMode:window->monitor->ns.screen
withOptions:nil];
withOptions:opts];
}
// Leave fullscreen mode

Loading…
Cancel
Save