mirror of https://github.com/godotengine/godot
[macOS] Fix mouse enter events sent to wrong popup window.
This commit is contained in:
parent
06faefc9f4
commit
03c544fb2b
|
|
@ -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…
Reference in New Issue