-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
[macOS][nativewindowing] Event location only makes sense for mouse ev… #23630
Conversation
52cabad
to
b4cd0b3
Compare
5712eec
to
caf9d61
Compare
caf9d61
to
7bb383a
Compare
btw on the mouse topic: I've noticed that mouse cursor receives the big Kodi-style shape only after I move the cursor outside the fullscreen window and move it back. I observe the following:
|
I'll give a go but I never noticed this. Running macOS ventura right? |
yep |
…dXBMCMouseButtonEvent
7bb383a
to
10af763
Compare
Yeap can't reproduce unfortunately. Maybe this only happens on x86 or something (i'll keep it in mind to give it a spin with my old mac on the beginning of next month) |
Actually I could reproduce now - but for this to happen another app on another screen must be focused (e.g. click somewhere on xcode). I'll look into a fix when possible (outside of this PR though). edit: fixed in #23659 |
didn't notice any issues with this PR in runtime test |
…ents
Description
Currently we are ignoring any events if the location does not have a window bound to the event or even if the event coordinates are negative. This happens when, for example, the mouse is outside of the window bounds or when triggering keypresses with the mouse outside of the window...
Apart from calculating the location for any kind of event that doesn't necessarily need it (waste of resources), we are also ignoring other kind of events. For example, media keys (systemdefined) do not trigger the respective event (wip). Keypresses are only interpreted if the mouse is within the window...that also doesn't make sense and affects the user experience.
@kambala-decapitator it'd be nice if you could have a quick look. I'd like to have this in alpha3