Merge pull request #26204 from bruvzg/macos_move_to_fg

[macOS] Change `move_window_to_foreground` to take focus.
This commit is contained in:
Rémi Verschelde 2019-02-23 20:26:48 +01:00 committed by GitHub
commit 112dd91193
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {