From 0b118594f90acad1350120269ac7f5a1204ea676 Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Sun, 8 Dec 2019 18:29:31 +0200 Subject: [PATCH] [macOS] Send resize event without actually resizing window on backing change. Co-authored-by: Haoyu Qiu --- platform/osx/os_osx.mm | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/platform/osx/os_osx.mm b/platform/osx/os_osx.mm index 3c79515465e..3992cb2ea00 100644 --- a/platform/osx/os_osx.mm +++ b/platform/osx/os_osx.mm @@ -221,12 +221,8 @@ static bool mouse_down_control = false; //Update context if (OS_OSX::singleton->main_loop) { - [OS_OSX::singleton->context update]; - - //Force window resize ??? - NSRect frame = [OS_OSX::singleton->window_object frame]; - [OS_OSX::singleton->window_object setFrame:NSMakeRect(frame.origin.x, frame.origin.y, 1, 1) display:YES]; - [OS_OSX::singleton->window_object setFrame:frame display:YES]; + //Force window resize event + [self windowDidResize:notification]; } } }