mirror of
https://github.com/godotengine/godot.git
synced 2025-01-23 11:03:13 -05:00
Merge pull request #26204 from bruvzg/macos_move_to_fg
[macOS] Change `move_window_to_foreground` to take focus.
This commit is contained in:
commit
112dd91193
1 changed files with 2 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue