kwin/plugins/scenes/opengl
Méven Car 66898e7f46 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
2020-04-20 16:12:26 +02:00
..
shaders Move lanczos filter away from KWin core 2019-02-07 18:03:34 +02:00
CMakeLists.txt Undo some recent cmake changes 2019-09-18 13:50:52 +03:00
lanczosfilter.cpp [scenes/opengl] Discard cached Lanczos textures for all toplevels 2019-12-02 15:14:21 +02:00
lanczosfilter.h Use nullptr everywhere 2019-09-19 17:48:21 +03:00
opengl.json SVN_SILENT made messages (.desktop file) - always resolve ours 2019-12-07 05:38:05 +01:00
resources.qrc Move lanczos filter away from KWin core 2019-02-07 18:03:34 +02:00
scene_opengl.cpp Wayland: Allow to take single screen screenshots using scale factor without loss 2020-04-20 16:12:26 +02:00
scene_opengl.h scene: Pass non-trivial classes by const& 2020-03-14 01:15:04 +01:00