-
-
Notifications
You must be signed in to change notification settings - Fork 658
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
Fix logic error in display tracking #16560
Fix logic error in display tracking #16560
Conversation
a693349
to
ba1253d
Compare
d5b0fea
to
be7e78a
Compare
@seanbudd I'm getting several display orientation change notifications per minute on my machine, making NVDA unusable until I restart (at which point they stop for a while). Why do we want to report state changes when |
This event is only meant to fire if your display changes (either in orientation or connecting to a new display). As per the code comment if the height and width are the same, it's a screen flip and the orientation state has changed. Is it possible your device is connected to a display with a faulty connection? I am curious as to what is firing the |
@seanbudd I usually have no display connected, but connecting one (even for a few minutes) seems to solve it. |
be7e78a
to
b5e9d89
Compare
That said, assuming the original behaviour of |
Thanks yes this is a great catch, does it also fix the issue for you without changing |
Can you please add a change log entry |
It doesn't fix the issue for me, but it does fix a logic error, so hopefully it fixes something else somewhere. No what's new entry added since no apparent user impact. |
Perhaps we could create a toggle to disable these notifications in general? Might be worth creating an option for power status change notifications too? |
If this is done, it seems that notifications such as adjusting the volume through the volume keys should not be restricted to the Explorer process. |
Link to issue number:
None
Summary of the issue:
On my machine (set to 1080p), after a while, NVDA repeatedly says "lanscape". In the Python console, I get:
However, since 1920 is greater than 1080,
getPrimaryDisplayOrientation().style
should beOrientation.LANDSCAPE
.Description of how this pull request fixes the issue:
Declare parameter names in the call to
_getOrientationStyle
.Testing strategy:
Alpha testing
Known issues with pull request:
None known
Change log entry:
None needed
Code Review Checklist: