diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2019-02-23 20:06:33 +0200 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2019-02-23 20:06:33 +0200 |
commit | ac3158332b11df42bee681a8b7a9aa0a188b6d19 (patch) | |
tree | 1fdc3df7d2c3b2c476462cc1d29ee67c2ca9ebf0 | |
parent | 9d78274e068d4928044220c4d5c1a7baed423670 (diff) |
[macOS] Make `move_window_to_foreground` to take focus in addition to moving window to front.
-rw-r--r-- | platform/osx/os_osx.mm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/platform/osx/os_osx.mm b/platform/osx/os_osx.mm index 225e0aee06..4e4d9c9eea 100644 --- a/platform/osx/os_osx.mm +++ b/platform/osx/os_osx.mm @@ -2324,7 +2324,8 @@ bool OS_OSX::is_window_maximized() const { void OS_OSX::move_window_to_foreground() { - [window_object orderFrontRegardless]; + [[NSApplication sharedApplication] activateIgnoringOtherApps:YES]; + [window_object makeKeyAndOrderFront:nil]; } void OS_OSX::set_window_always_on_top(bool p_enabled) { |