I have a window that should hide the cursor. The contentcomponent and window itself have the setMouseCursor(MouseCursor::NoCursor); call in the constructor (i did it for both just to be save).
When the window shows and has focus the mouse is indeed hidden, but if the mouse comes from another window that has the focus (other app or other Juce window) the cursor isn’t hidden until i click on the window so that it grabs the focus.
I also notice that the MouseEnter call is not being made until the window get’s focus.
This happens only on OSX on Windows it does hide the cursor the moment i move over the window. Is this an OSX related issue.
I now made a hack that polls for the mouse position and when the mouse is over the window i let it grab the focus, this then triggers the mouseenter and thus hides the cursor.
This works but is a major hack and can mess up the correct focus in other situations.
Anyone has any idea what i could do about this and if this an OS related issue maybe?