From 03c544fb2bb35b034013e95cd34b3a4d7bb9da4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pa=CC=84vels=20Nadtoc=CC=8Cajevs?= <7645683+bruvzg@users.noreply.github.com> Date: Tue, 4 Nov 2025 13:03:48 +0200 Subject: [PATCH] [macOS] Fix mouse enter events sent to wrong popup window. --- platform/macos/godot_content_view.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/macos/godot_content_view.mm b/platform/macos/godot_content_view.mm index 165289c5905..97263c58a15 100644 --- a/platform/macos/godot_content_view.mm +++ b/platform/macos/godot_content_view.mm @@ -543,7 +543,7 @@ ds->get_key_modifier_state([event modifierFlags], mm); const NSRect contentRect = [wd.window_view frame]; - if (NSPointInRect([event locationInWindow], contentRect)) { + if (NSPointInRect([event locationInWindow], contentRect) && [NSWindow windowNumberAtPoint:[NSEvent mouseLocation] belowWindowWithWindowNumber:0 /*topmost*/] == [wd.window_object windowNumber]) { ds->mouse_enter_window(window_id); }