From ca58ee875f269fd6a8fc222f5690fa2522304e7e Mon Sep 17 00:00:00 2001 From: Xaver Hugl Date: Sun, 24 Oct 2021 14:00:49 +0200 Subject: [PATCH] WaylandOutput: schedule update on mode change Without this there can be a mismatch between what clients expect and what KWin actually uses, causing for example stutter in video players. BUG: 444303 FIXED-IN: 5.23.2 --- src/waylandoutput.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/waylandoutput.cpp b/src/waylandoutput.cpp index 29cde5ff0c..d406e9f367 100644 --- a/src/waylandoutput.cpp +++ b/src/waylandoutput.cpp @@ -125,6 +125,7 @@ WaylandOutput::WaylandOutput(AbstractWaylandOutput *output, QObject *parent) m_updateTimer.setSingleShot(true); connect(&m_updateTimer, &QTimer::timeout, this, &WaylandOutput::update); + connect(output, &AbstractWaylandOutput::currentModeChanged, this, &WaylandOutput::scheduleUpdate); connect(output, &AbstractWaylandOutput::geometryChanged, this, &WaylandOutput::scheduleUpdate); connect(output, &AbstractWaylandOutput::transformChanged, this, &WaylandOutput::scheduleUpdate); connect(output, &AbstractWaylandOutput::scaleChanged, this, &WaylandOutput::scheduleUpdate);