diff options
author | Patrick Beard <pcbeard@mac.com> | 2018-10-17 14:00:10 -0700 |
---|---|---|
committer | Patrick Beard <pcbeard@mac.com> | 2018-10-23 07:22:40 -0700 |
commit | d2ed3b224a070c0cf3ea5e595e7273dace754fff (patch) | |
tree | d264709120859e7f6e166e2762bc5cf56fe49b91 /platform | |
parent | ee858d0d85123de004c85131914e1f421e7f06ab (diff) |
Call -update when window becomes the key window
Diffstat (limited to 'platform')
-rw-r--r-- | platform/osx/os_osx.mm | 1 |
1 files changed, 1 insertions, 0 deletions
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); } |