Fix KScreen KCM screen placement with scaled outputs
ClosedPublic

Authored by davidedmundson on Apr 28 2017, 12:41 PM.

Details

Summary

The QML part of the KCM gets the output size manually as it wants to do
all translations itself.

We need to divide the mode by the scale as wayland wants everything in
normalised global co-ordinates.

i.e a screen to the right of a 2x output with a mode of 2000 pixels,
will have an X of 1000.

Test Plan

Had a scaled output (set using kwin config)
Moved some about.
They appeared exactly where it should have done.

Diff Detail

Repository
R104 KScreen
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
Restricted Application added a project: Plasma. · View Herald TranscriptApr 28 2017, 12:41 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
sebas accepted this revision.May 2 2017, 1:37 PM
sebas added a subscriber: sebas.

Looks fine.

You've tested under X11 as well, I suppose?

This revision is now accepted and ready to land.May 2 2017, 1:37 PM
This revision was automatically updated to reflect the committed changes.