Commit 39f45ad7 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

WaylandOutput: Remove unused rendered attribute

parent 885e9acb
......@@ -823,8 +823,6 @@ WaylandOutput *WaylandBackend::createOutput(const QString &name, const QPoint &p
waylandOutput->init(position, size);
connect(waylandOutput, &WaylandOutput::frameRendered, this, [waylandOutput]() {
waylandOutput->resetRendered();
// The current time of the monotonic clock is a pretty good estimate when the frame
// has been presented, however it will be much better if we check whether the host
// compositor supports the wp_presentation protocol.
......
......@@ -36,10 +36,7 @@ WaylandOutput::WaylandOutput(const QString &name, Surface *surface, WaylandBacke
.capabilities = Capability::Dpms,
});
connect(surface, &Surface::frameRendered, this, [this] {
m_rendered = true;
Q_EMIT frameRendered();
});
connect(surface, &Surface::frameRendered, this, &WaylandOutput::frameRendered);
m_turnOffTimer.setSingleShot(true);
m_turnOffTimer.setInterval(dimAnimationTime());
connect(&m_turnOffTimer, &QTimer::timeout, this, [this] {
......
......@@ -70,15 +70,6 @@ public:
return m_surface;
}
bool rendered() const
{
return m_rendered;
}
void resetRendered()
{
m_rendered = false;
}
void updateEnablement(bool enable) override;
void setDpmsMode(DpmsMode mode) override;
......@@ -97,8 +88,6 @@ private:
KWayland::Client::Surface *m_surface;
WaylandBackend *m_backend;
QTimer m_turnOffTimer;
bool m_rendered = false;
};
class XdgShellOutput : public WaylandOutput
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment