Wayland: Allow to take single screen screenshots using scale factor without loss
ClosedPublic

Authored by meven on Apr 20 2020, 2:01 PM.

Details

Summary

The screenshot made on screens with scale factor were downscaled by their scale factor making them blurry.
It prevents taking screenshots of missing Hidpi related bugs showing the issues under Wayland.

This fix the case of a single screenshot, but not the rest:
Multiscreen screenshot downscales the screen using scale factor.
Spectacle rectangular selection screenshot is broken as soon as some scale factor different than 1 is used on any screen.

Test Plan

Under Wayland with a scale factor on a screen, take a screenshot using spectacle.
The output image is not downscaled and has the same size as the screen resolution.

No other change to any other screenshot mode, or under X.

Diff Detail

Repository
R108 KWin
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
meven created this revision.Apr 20 2020, 2:01 PM
Restricted Application added a project: KWin. · View Herald TranscriptApr 20 2020, 2:01 PM
Restricted Application added a subscriber: kwin. · View Herald Transcript
meven requested review of this revision.Apr 20 2020, 2:01 PM
davidedmundson accepted this revision.Apr 20 2020, 2:03 PM
This revision is now accepted and ready to land.Apr 20 2020, 2:03 PM
This revision was automatically updated to reflect the committed changes.