-
Notifications
You must be signed in to change notification settings - Fork 102
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
[wayland platform] Less broken display on scaled hosts #3037
Conversation
Codecov Report
@@ Coverage Diff @@
## main #3037 +/- ##
=======================================
Coverage 77.70% 77.71%
=======================================
Files 1056 1056
Lines 73394 73397 +3
=======================================
+ Hits 57030 57037 +7
+ Misses 16364 16360 -4
... and 5 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
The alpine-edge failure is fixed by #3038 |
d10aff8
to
644e822
Compare
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.
One question that maybe warrants a comment in the code if it is non-obvious
@@ -718,7 +719,8 @@ void mgw::DisplayClient::pointer_enter( | |||
{ | |||
if (surface == out.second->surface) | |||
{ | |||
pointer_displacement = out.second->dcout.top_left - geometry::Point{}; | |||
pointer_displacement = geom::DisplacementF{out.second->dcout.top_left - geometry::Point{}}; | |||
host_scale = out.second->host_scale; |
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.
Why are we setting the host_scale
during pointer_enter
?
644e822
to
d0407f7
Compare
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.
I have tested and things appear to be working with 200% zoom on my host 🎉
Don't confuse scaling of host environment with internal scaling of outputs.
Fixes: #3036
Note: this fixes the display and cursor positioning and so is generally an improvement. However, there are remaining oddities with the cursor image. These are arguably pre-existing, and don't make things unusable