[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
No known key found for this signature in database
GPG key ID: 8413210218EF35D2

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