Slightly better mac fullscreen fix

This commit is contained in:
Allen Webster 2020-01-21 12:57:42 -08:00
parent d6b0387f0d
commit b2bdfbd05d
1 changed files with 4 additions and 2 deletions

View File

@ -612,8 +612,10 @@ mac_toggle_fullscreen(void){
- (void)windowDidResize:(NSNotification*)notification{
mac_resize(mac_vars.window);
if (!mac_vars.do_toggle){
[mac_vars.view display];
}
}
- (void)windowDidMiniaturize:(NSNotification*)notification{
}
@ -824,8 +826,8 @@ mac_toggle_fullscreen(void){
// NOTE(yuval): Toggle full screen
MacProfileScope("Toggle Full Screen"){
if (mac_vars.do_toggle){
mac_vars.do_toggle = false;
mac_toggle_fullscreen();
mac_vars.do_toggle = false;
}
}