summaryrefslogtreecommitdiff
path: root/platform/osx/godot_application_delegate.mm
diff options
context:
space:
mode:
Diffstat (limited to 'platform/osx/godot_application_delegate.mm')
-rw-r--r--platform/osx/godot_application_delegate.mm4
1 files changed, 4 insertions, 0 deletions
diff --git a/platform/osx/godot_application_delegate.mm b/platform/osx/godot_application_delegate.mm
index be284ba543..dc82075c44 100644
--- a/platform/osx/godot_application_delegate.mm
+++ b/platform/osx/godot_application_delegate.mm
@@ -68,6 +68,10 @@
}
- (void)applicationDidResignActive:(NSNotification *)notification {
+ DisplayServerOSX *ds = (DisplayServerOSX *)DisplayServer::get_singleton();
+ if (ds) {
+ ds->mouse_process_popups(true);
+ }
if (OS::get_singleton()->get_main_loop()) {
OS::get_singleton()->get_main_loop()->notification(MainLoop::NOTIFICATION_APPLICATION_FOCUS_OUT);
}