Diffusion KWin 66898e7f46f2

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

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

Description

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

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.

Reviewers: davidedmundson, KWin

Reviewed By: davidedmundson, KWin

Subscribers: kwin

Tags: KWin

Differential Revision: https://phabricator.kde.org/D29010

Details

Committed
mevenApr 20 2020, 2:12 PM
Reviewer
KWin
Differential Revision
D29010: Wayland: Allow to take single screen screenshots using scale factor without loss
Parents
R108:e95d1dc95082: KCM/Compositing: Use KConfig XT in UI
Branches
Unknown
Tags
Unknown