diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-06-02 17:02:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-02 17:02:46 +0200 |
commit | 0c8f562711a51dd73a824f9a4010fc4825c4ccce (patch) | |
tree | cce266c76b05a74749738d8cf7a7b5e220d6ac0e /platform/osx/godot_application.mm | |
parent | a21cb213cbf74ad035b27fbb1305fe13682bc0d1 (diff) | |
parent | 40b3be79127cddf8673a0ad8758682a211874cb5 (diff) |
Merge pull request #61538 from bruvzg/fix_popup_close_passthr
Diffstat (limited to 'platform/osx/godot_application.mm')
-rw-r--r-- | platform/osx/godot_application.mm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/platform/osx/godot_application.mm b/platform/osx/godot_application.mm index 00a58700e8..13313a025a 100644 --- a/platform/osx/godot_application.mm +++ b/platform/osx/godot_application.mm @@ -37,6 +37,11 @@ - (void)sendEvent:(NSEvent *)event { DisplayServerOSX *ds = (DisplayServerOSX *)DisplayServer::get_singleton(); if (ds) { + if ([event type] == NSEventTypeLeftMouseDown || [event type] == NSEventTypeRightMouseDown || [event type] == NSEventTypeOtherMouseDown) { + if (ds->mouse_process_popups()) { + return; + } + } ds->send_event(event); } |