Skip to content

Commit a6e7084

Browse files
committed
Merge pull request #112383 from bruvzg/mm_enter_spam
[macOS] Fix mouse enter events sent to wrong popup window.
2 parents 86e0c22 + 03c544f commit a6e7084

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

platform/macos/godot_content_view.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ - (void)mouseMoved:(NSEvent *)event {
543543
ds->get_key_modifier_state([event modifierFlags], mm);
544544

545545
const NSRect contentRect = [wd.window_view frame];
546-
if (NSPointInRect([event locationInWindow], contentRect)) {
546+
if (NSPointInRect([event locationInWindow], contentRect) && [NSWindow windowNumberAtPoint:[NSEvent mouseLocation] belowWindowWithWindowNumber:0 /*topmost*/] == [wd.window_object windowNumber]) {
547547
ds->mouse_enter_window(window_id);
548548
}
549549

0 commit comments

Comments
 (0)