summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2019-02-23 20:26:48 +0100
committerGitHub <noreply@github.com>2019-02-23 20:26:48 +0100
commit112dd91193a9c692882be18267173cda94243ddd (patch)
tree1fdc3df7d2c3b2c476462cc1d29ee67c2ca9ebf0
parent9d78274e068d4928044220c4d5c1a7baed423670 (diff)
parentac3158332b11df42bee681a8b7a9aa0a188b6d19 (diff)
Merge pull request #26204 from bruvzg/macos_move_to_fg
[macOS] Change `move_window_to_foreground` to take focus.
-rw-r--r--platform/osx/os_osx.mm3
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) {