From b2bdfbd05dff4c2e3fe69965c931d241dc448b7a Mon Sep 17 00:00:00 2001 From: Allen Webster Date: Tue, 21 Jan 2020 12:57:42 -0800 Subject: [PATCH] Slightly better mac fullscreen fix --- platform_mac/mac_4ed.mm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/platform_mac/mac_4ed.mm b/platform_mac/mac_4ed.mm index a8688811..46997aff 100644 --- a/platform_mac/mac_4ed.mm +++ b/platform_mac/mac_4ed.mm @@ -612,7 +612,9 @@ mac_toggle_fullscreen(void){ - (void)windowDidResize:(NSNotification*)notification{ mac_resize(mac_vars.window); - [mac_vars.view display]; + 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; } }