Merge pull request #39986 from reduz/app-inout-notification

Add a separate application focus/in notification
This commit is contained in:
Rémi Verschelde 2020-06-30 16:58:46 +02:00 committed by GitHub
commit 5f2295f2df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 65 additions and 35 deletions

View file

@ -1853,7 +1853,7 @@ void NativeReloadNode::_notification(int p_what) {
#ifdef TOOLS_ENABLED
switch (p_what) {
case NOTIFICATION_WM_FOCUS_OUT: {
case NOTIFICATION_APPLICATION_FOCUS_OUT: {
if (unloaded) {
break;
}
@ -1887,7 +1887,7 @@ void NativeReloadNode::_notification(int p_what) {
} break;
case NOTIFICATION_WM_FOCUS_IN: {
case NOTIFICATION_APPLICATION_FOCUS_IN: {
if (!unloaded) {
break;
}