JUCE icon indicating copy to clipboard operation
JUCE copied to clipboard

Fixes #1442: MacOS addToDesktop w/ nativeWindowToAttachTo handles mouseMove incorrectly

Open emezeske opened this issue 4 months ago • 0 comments

When handling mouseMove on MacOS, check that the current peer is the topmost NSView before forwarding the events. Without this, a Component created via addDocumentWindow() with the nativeWindowToAttachTo argument set (i.e., creating a sub-NSView) would receive incorrect mouseExit events, as both it and its parent component would handle these mouseMove events, rapidly sending enter/exit messages back and forth between the two windows while the mouse moved.

emezeske avatar Oct 10 '24 21:10 emezeske