diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2022-02-24 11:21:23 +0200 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2022-02-25 09:33:27 +0200 |
commit | 74ff5921d68ca09942d8988d5a78849b46d8583b (patch) | |
tree | 364847d2d52f728f6ed18de56d306fcbf53ad07d /platform/osx/godot_application_delegate.mm | |
parent | 80baa1386a5a19ed8ea50082617d2ae9112678fc (diff) |
Improve popup window handling.
Add window FLAG_POPUP and a platform specific routines to control popup auto-hiding and event forwarding.
Diffstat (limited to 'platform/osx/godot_application_delegate.mm')
-rw-r--r-- | platform/osx/godot_application_delegate.mm | 4 |
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); } |