Slightly better mac fullscreen fix
parent
d6b0387f0d
commit
b2bdfbd05d
|
@ -612,7 +612,9 @@ mac_toggle_fullscreen(void){
|
||||||
|
|
||||||
- (void)windowDidResize:(NSNotification*)notification{
|
- (void)windowDidResize:(NSNotification*)notification{
|
||||||
mac_resize(mac_vars.window);
|
mac_resize(mac_vars.window);
|
||||||
|
if (!mac_vars.do_toggle){
|
||||||
[mac_vars.view display];
|
[mac_vars.view display];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)windowDidMiniaturize:(NSNotification*)notification{
|
- (void)windowDidMiniaturize:(NSNotification*)notification{
|
||||||
|
@ -824,8 +826,8 @@ mac_toggle_fullscreen(void){
|
||||||
// NOTE(yuval): Toggle full screen
|
// NOTE(yuval): Toggle full screen
|
||||||
MacProfileScope("Toggle Full Screen"){
|
MacProfileScope("Toggle Full Screen"){
|
||||||
if (mac_vars.do_toggle){
|
if (mac_vars.do_toggle){
|
||||||
mac_vars.do_toggle = false;
|
|
||||||
mac_toggle_fullscreen();
|
mac_toggle_fullscreen();
|
||||||
|
mac_vars.do_toggle = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue