From 2bd02f660b95d0636f4086a7a81d64766ff3f098 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Fri, 10 Sep 2021 15:26:20 +0200 Subject: [PATCH] wayland platform: Remember to call setTransformInternal() from updateTransform() --- src/plugins/platforms/wayland/wayland_output.cpp | 5 +++++ src/plugins/platforms/wayland/wayland_output.h | 1 + 2 files changed, 6 insertions(+) diff --git a/src/plugins/platforms/wayland/wayland_output.cpp b/src/plugins/platforms/wayland/wayland_output.cpp index cfb325e244..c2d5384124 100644 --- a/src/plugins/platforms/wayland/wayland_output.cpp +++ b/src/plugins/platforms/wayland/wayland_output.cpp @@ -82,6 +82,11 @@ void WaylandOutput::setGeometry(const QPoint &logicalPosition, const QSize &pixe moveTo(logicalPosition); } +void WaylandOutput::updateTransform(Transform transform) +{ + setTransformInternal(transform); +} + void WaylandOutput::updateEnablement(bool enable) { setDpmsMode(enable ? DpmsMode::On : DpmsMode::Off); diff --git a/src/plugins/platforms/wayland/wayland_output.h b/src/plugins/platforms/wayland/wayland_output.h index 12cc8a98a5..aedd23677b 100644 --- a/src/plugins/platforms/wayland/wayland_output.h +++ b/src/plugins/platforms/wayland/wayland_output.h @@ -72,6 +72,7 @@ public: } void updateEnablement(bool enable) override; + void updateTransform(Transform transform) override; void setDpmsMode(KWin::AbstractWaylandOutput::DpmsMode mode) override; Q_SIGNALS: