From 429fe05856460708138a04e57721ff15d8bb190a Mon Sep 17 00:00:00 2001 From: Roman Gilg Date: Thu, 2 Jan 2020 14:55:07 +0000 Subject: [PATCH] Cache output transformation first Summary: First we need to set a transformation, then update the backend. In DRM the cursor gets updated and needs the new transformed size. Longterm we need a pending state if we want to apply configuration changes atomically or deny them. Test Plan: Compiles. Reviewers: #kwin, zzag Reviewed By: #kwin, zzag Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D25903 --- abstract_wayland_output.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/abstract_wayland_output.cpp b/abstract_wayland_output.cpp index 30427e170a..c49b277dbb 100644 --- a/abstract_wayland_output.cpp +++ b/abstract_wayland_output.cpp @@ -185,8 +185,8 @@ void AbstractWaylandOutput::applyChanges(const KWayland::Server::OutputChangeSet } if (changeSet->transformChanged()) { qCDebug(KWIN_CORE) << "Server setting transform: " << (int)(changeSet->transform()); - updateTransform(toTransform(changeSet->transform())); setTransform(changeSet->transform()); + updateTransform(toTransform(changeSet->transform())); emitModeChanged = true; } if (changeSet->positionChanged()) {