diff --git a/src/backends/x11/standalone/x11_standalone_output.cpp b/src/backends/x11/standalone/x11_standalone_output.cpp index ef1150c21c..606e73b1fd 100644 --- a/src/backends/x11/standalone/x11_standalone_output.cpp +++ b/src/backends/x11/standalone/x11_standalone_output.cpp @@ -57,8 +57,8 @@ bool X11Output::setChannelFactors(const QVector3D &rgb) const double input = i / double(m_gammaRampSize - 1); const QVector3D output = pipeline.evaluate(QVector3D(input, input, input)); red[i] = std::round(std::clamp(output.x(), 0.0f, 1.0f) * std::numeric_limits::max()); - red[i] = std::round(std::clamp(output.y(), 0.0f, 1.0f) * std::numeric_limits::max()); - green[i] = std::round(std::clamp(output.z(), 0.0f, 1.0f) * std::numeric_limits::max()); + green[i] = std::round(std::clamp(output.y(), 0.0f, 1.0f) * std::numeric_limits::max()); + blue[i] = std::round(std::clamp(output.z(), 0.0f, 1.0f) * std::numeric_limits::max()); } xcb_randr_set_crtc_gamma(kwinApp()->x11Connection(), m_crtc, m_gammaRampSize, red.data(), green.data(), blue.data()); return true;