Implement OS.request_attention() for OSX (#5662)
Keeps bouncing icon until user focuses window
This commit is contained in:
parent
d723e5a62f
commit
2c1a74fb3a
2 changed files with 6 additions and 1 deletions
|
@ -202,7 +202,7 @@ public:
|
|||
virtual bool is_window_minimized() const;
|
||||
virtual void set_window_maximized(bool p_enabled);
|
||||
virtual bool is_window_maximized() const;
|
||||
|
||||
virtual void request_attention();
|
||||
|
||||
void run();
|
||||
|
||||
|
|
|
@ -1577,6 +1577,11 @@ void OS_OSX::move_window_to_foreground() {
|
|||
[window_object orderFrontRegardless];
|
||||
}
|
||||
|
||||
void OS_OSX::request_attention() {
|
||||
|
||||
[NSApp requestUserAttention:NSCriticalRequest];
|
||||
}
|
||||
|
||||
String OS_OSX::get_executable_path() const {
|
||||
|
||||
int ret;
|
||||
|
|
Loading…
Reference in a new issue