Merge pull request #112383 from bruvzg/mm_enter_spam

[macOS] Fix mouse enter events sent to wrong popup window.
This commit is contained in:
Thaddeus Crews
2025-11-04 16:32:56 -06:00

View File

@ -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);
}