diff --git a/src/backends/wayland/wayland_backend.cpp b/src/backends/wayland/wayland_backend.cpp index af1a7230e1..3a6d4268ea 100644 --- a/src/backends/wayland/wayland_backend.cpp +++ b/src/backends/wayland/wayland_backend.cpp @@ -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 WaylandBackend::createQPainterBackend() return std::make_unique(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 WaylandBackend::supportedCompositors() const diff --git a/src/backends/wayland/wayland_backend.h b/src/backends/wayland/wayland_backend.h index cf696ee627..2f15db4b3c 100644 --- a/src/backends/wayland/wayland_backend.h +++ b/src/backends/wayland/wayland_backend.h @@ -247,8 +247,6 @@ public: std::unique_ptr createOpenGLBackend() override; std::unique_ptr createQPainterBackend() override; - void flush(); - WaylandDisplay *display() const { return m_display.get();