backends/wayland: Drop WaylandBackend::flush()

These flush()es are unnecessary, wayland backend will work fine without
them.
This commit is contained in:
Vlad Zahorodnii 2022-11-17 18:08:06 +02:00
parent 8655cc76e8
commit 3a7b35a95b
2 changed files with 0 additions and 9 deletions

View file

@ -104,7 +104,6 @@ void WaylandCursor::drawSurface(wl_buffer *image, const QSize &size, qreal scale
m_surface->setScale(std::ceil(scale));
m_surface->damageBuffer(QRect(QPoint(0, 0), size));
m_surface->commit(KWayland::Client::Surface::CommitFlag::None);
m_backend->flush();
}
WaylandSubSurfaceCursor::WaylandSubSurfaceCursor(WaylandBackend *backend)
@ -667,11 +666,6 @@ std::unique_ptr<QPainterBackend> WaylandBackend::createQPainterBackend()
return std::make_unique<WaylandQPainterBackend>(this);
}
void WaylandBackend::flush()
{
m_display->flush();
}
WaylandOutput *WaylandBackend::getOutputAt(const QPointF &globalPosition)
{
const auto pos = globalPosition.toPoint();
@ -717,7 +711,6 @@ void WaylandBackend::togglePointerLock()
output->lockPointer(m_seat->pointerDevice()->nativePointer(), !m_pointerLockRequested);
}
m_pointerLockRequested = !m_pointerLockRequested;
flush();
}
QVector<CompositingType> WaylandBackend::supportedCompositors() const

View file

@ -247,8 +247,6 @@ public:
std::unique_ptr<OpenGLBackend> createOpenGLBackend() override;
std::unique_ptr<QPainterBackend> createQPainterBackend() override;
void flush();
WaylandDisplay *display() const
{
return m_display.get();