mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Merge pull request #112383 from bruvzg/mm_enter_spam
[macOS] Fix mouse enter events sent to wrong popup window.
This commit is contained in:
commit
a6e7084b40
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue