diff --git a/src/abstract_wayland_output.cpp b/src/abstract_wayland_output.cpp index 46509ff4c3..32e656bd3a 100644 --- a/src/abstract_wayland_output.cpp +++ b/src/abstract_wayland_output.cpp @@ -314,21 +314,6 @@ QMatrix4x4 AbstractWaylandOutput::logicalToNativeMatrix(const QRect &rect, qreal return matrix; } -void AbstractWaylandOutput::recordingStarted() -{ - m_recorders++; -} - -void AbstractWaylandOutput::recordingStopped() -{ - m_recorders--; -} - -bool AbstractWaylandOutput::isBeingRecorded() -{ - return m_recorders; -} - void AbstractWaylandOutput::setOverscanInternal(uint32_t overscan) { if (m_overscan != overscan) { diff --git a/src/abstract_wayland_output.h b/src/abstract_wayland_output.h index bbc2311946..fa3ceb31c1 100644 --- a/src/abstract_wayland_output.h +++ b/src/abstract_wayland_output.h @@ -139,11 +139,6 @@ public: */ static QMatrix4x4 logicalToNativeMatrix(const QRect &rect, qreal scale, Transform transform); - void recordingStarted(); - void recordingStopped(); - - bool isBeingRecorded(); - void setVrrPolicy(RenderLoop::VrrPolicy policy); RenderLoop::VrrPolicy vrrPolicy() const; RgbRange rgbRange() const; @@ -210,7 +205,6 @@ private: DpmsMode m_dpmsMode = DpmsMode::On; SubPixel m_subPixel = SubPixel::Unknown; int m_refreshRate = -1; - int m_recorders = 0; bool m_isEnabled = true; bool m_internal = false; bool m_isPlaceholder = false; diff --git a/src/plugins/screencast/screencastmanager.cpp b/src/plugins/screencast/screencastmanager.cpp index 2b6e0bec0d..9e81cf55e8 100644 --- a/src/plugins/screencast/screencastmanager.cpp +++ b/src/plugins/screencast/screencastmanager.cpp @@ -138,12 +138,8 @@ void ScreencastManager::streamOutput(KWaylandServer::ScreencastStreamV1Interface }; connect(stream, &ScreenCastStream::startStreaming, waylandStream, [streamOutput, stream, bufferToStream] { Compositor::self()->scene()->addRepaint(streamOutput->geometry()); - streamOutput->recordingStarted(); connect(streamOutput, &AbstractWaylandOutput::outputChange, stream, bufferToStream); }); - connect(stream, &ScreenCastStream::stopStreaming, waylandStream, [streamOutput]{ - streamOutput->recordingStopped(); - }); integrateStreams(waylandStream, stream); }