Commit d94eb29d authored by Vlad Zahorodnii's avatar Vlad Zahorodnii

[effects/thumbnailaside] Specify screen projection matrix

The Lanczos filter is applied to thumbnails, so we need to specify screen
projection matrix in order to properly project window coordinates into

BUG: 407485

Reviewers: #kwin, davidedmundson

Reviewed By: #kwin, davidedmundson

Subscribers: kwin

Tags: #kwin

Differential Revision:
parent 67b2746e
......@@ -23,10 +23,12 @@ along with this program. If not, see <>.
// KConfigSkeleton
#include "thumbnailasideconfig.h"
#include <QAction>
#include <KGlobalAccel>
#include <KLocalizedString>
#include <QAction>
#include <QMatrix4x4>
namespace KWin
......@@ -62,9 +64,11 @@ void ThumbnailAsideEffect::paintScreen(int mask, QRegion region, ScreenPaintData
painted = QRegion();
effects->paintScreen(mask, region, data);
const QMatrix4x4 projectionMatrix = data.projectionMatrix();
foreach (const Data & d, windows) {
if (painted.intersects(d.rect)) {
WindowPaintData data(d.window);
WindowPaintData data(d.window, projectionMatrix);
QRect region;
setPositionTransformations(data, region, d.window, d.rect, Qt::KeepAspectRatio);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment