1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-30 16:26:50 +00:00

[macOS] Fix mouse enter events sent to wrong popup window.

This commit is contained in:
Pāvels Nadtočajevs
2025-11-04 13:03:48 +02:00
parent 06faefc9f4
commit 03c544fb2b

View File

@@ -543,7 +543,7 @@
ds->get_key_modifier_state([event modifierFlags], mm); ds->get_key_modifier_state([event modifierFlags], mm);
const NSRect contentRect = [wd.window_view frame]; 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); ds->mouse_enter_window(window_id);
} }