Implement OS.request_attention() for OSX (#5662)

Keeps bouncing icon until user focuses window
This commit is contained in:
GungnirInd 2016-07-21 08:30:20 -07:00 committed by Rémi Verschelde
parent d723e5a62f
commit 2c1a74fb3a
2 changed files with 6 additions and 1 deletions

View file

@ -202,7 +202,7 @@ public:
virtual bool is_window_minimized() const; virtual bool is_window_minimized() const;
virtual void set_window_maximized(bool p_enabled); virtual void set_window_maximized(bool p_enabled);
virtual bool is_window_maximized() const; virtual bool is_window_maximized() const;
virtual void request_attention();
void run(); void run();

View file

@ -1577,6 +1577,11 @@ void OS_OSX::move_window_to_foreground() {
[window_object orderFrontRegardless]; [window_object orderFrontRegardless];
} }
void OS_OSX::request_attention() {
[NSApp requestUserAttention:NSCriticalRequest];
}
String OS_OSX::get_executable_path() const { String OS_OSX::get_executable_path() const {
int ret; int ret;