From d2ed3b224a070c0cf3ea5e595e7273dace754fff Mon Sep 17 00:00:00 2001 From: Patrick Beard Date: Wed, 17 Oct 2018 14:00:10 -0700 Subject: Call -update when window becomes the key window --- platform/osx/os_osx.mm | 1 + 1 file changed, 1 insertion(+) diff --git a/platform/osx/os_osx.mm b/platform/osx/os_osx.mm index 6ab433203f..6cb6b5bbd2 100644 --- a/platform/osx/os_osx.mm +++ b/platform/osx/os_osx.mm @@ -325,6 +325,7 @@ static Vector2 get_mouse_pos(NSEvent *event) { - (void)windowDidBecomeKey:(NSNotification *)notification { //_GodotInputWindowFocus(window, GL_TRUE); //_GodotPlatformSetCursorMode(window, window->cursorMode); + [OS_OSX::singleton->context update]; if (OS_OSX::singleton->get_main_loop()) OS_OSX::singleton->get_main_loop()->notification(MainLoop::NOTIFICATION_WM_FOCUS_IN); } -- cgit v1.2.3