Compute correct position of drag button press on X11
ClosedPublic

Authored by zzag on Apr 1 2019, 6:58 PM.

Details

Summary

While dimensions of QScreen are in logical pixels, the origin is not.
As result, computed native coordinates are incorrect on high dpi.

Test Plan

Drag a window by empty area on a multiple monitor setup (with High DPI),
neither cursor nor windows should "jump."

Diff Detail

Repository
R31 Breeze
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
zzag created this revision.Apr 1 2019, 6:58 PM
Restricted Application added a project: Plasma. · View Herald TranscriptApr 1 2019, 6:58 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
zzag requested review of this revision.Apr 1 2019, 6:58 PM
zzag edited the summary of this revision. (Show Details)Apr 1 2019, 7:07 PM
zzag edited the test plan for this revision. (Show Details)
zzag retitled this revision from Compute correct move-resize position on X11 to Compute correct position of drag button press on X11.Apr 1 2019, 7:11 PM
davidedmundson accepted this revision.Apr 1 2019, 8:59 PM
This revision is now accepted and ready to land.Apr 1 2019, 8:59 PM
This revision was automatically updated to reflect the committed changes.