-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Send Mouse Enter/Exit Notifications independently of mouse focus #59555
Conversation
77d25e6
to
e7a8680
Compare
At line 1611 (and maybe at some other spots) there's logic similar to the one modified in this PR, this time for the case of mouse exit. Wouldn't it need some changes, too? |
e7a8680
to
62c3877
Compare
62c3877
to
d8a3d4b
Compare
@RandomShaper Thank you for pointing me to this code section. The code around line 1611 is responsible for sending EXIT notifications after a DragAndDrop LBM-release. Since EXIT notifications are now handled solely by mouse position, that code at line 1611 can be safely removed, since it is redundant (it would trigger only after the node already has lost focus). I searched and found no other locations with similar logic. |
It would be good, if someone with knowledge about mouse capture mode can have a look at this. |
Any specific concern regarding capture? |
I was concerned, that I made a few tests and since in that mode the mouse cursor is always kept in the same place, it behaves as I would expect regarding Enter/Exit Notifications. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As far as I can tell, this is good to to. Let's have it in the back of our minds in case something weird with mouse enter/exit happens, though.
Thanks! |
Previously, the mouse focus (
Viewport::gui.mouse_focus
) influenced, whenNOTIFICATION_MOUSE_ENTER
andNOTIFICATION_MOUSE_EXIT
are sent.This patch changes the behavior, so that only the mouse position, but not the mouse focus has an effect on when the two notifications are sent.
resolve #19808
related to #20881
related to #32943
related to #54565