mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
[macOS] Make move_window_to_foreground to take focus in addition to moving window to front.
This commit is contained in:
parent
0b118594f9
commit
31d84838ac
1 changed files with 2 additions and 1 deletions
|
|
@ -1734,7 +1734,8 @@ bool OS_OSX::is_window_maximized() const {
|
||||||
|
|
||||||
void OS_OSX::move_window_to_foreground() {
|
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) {
|
void OS_OSX::set_window_always_on_top(bool p_enabled) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue