Improve tests behaviour on set ups with high dpi
ClosedPublic

Authored by apol on Mar 23 2020, 7:28 PM.

Details

Summary

We are testing on a 100x100 mock display. We'd ask QWidget for our
display's dpi, it would not use the mock display but the actual
system's. On my system it made the corners overlap with each other and
all sorts of weird things happened.

Test Plan

The tests actually pass here.

Diff Detail

Repository
R108 KWin
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 24119
Build 24137: arc lint + arc unit
apol created this revision.Mar 23 2020, 7:28 PM
Restricted Application added a project: KWin. · View Herald TranscriptMar 23 2020, 7:28 PM
Restricted Application added a subscriber: kwin. · View Herald Transcript
apol requested review of this revision.Mar 23 2020, 7:28 PM
davidedmundson accepted this revision.Mar 23 2020, 7:29 PM
This revision is now accepted and ready to land.Mar 23 2020, 7:29 PM
This revision was automatically updated to reflect the committed changes.
Zren added a subscriber: Zren.Jun 21 2020, 3:06 PM
Zren added inline comments.
screenedge.cpp
730

Was (X + X + 5) / 6 deliberate here? The old behavior was (X + Y + 5) / 6.

zzag added a subscriber: zzag.Jun 22 2020, 6:59 AM
zzag added inline comments.
screenedge.cpp
730

I don't think so. Can you please create a merge request?