diff --git a/src/backends/wayland/wayland_backend.cpp b/src/backends/wayland/wayland_backend.cpp index 0a0aee57d3..72bc30092e 100644 --- a/src/backends/wayland/wayland_backend.cpp +++ b/src/backends/wayland/wayland_backend.cpp @@ -18,13 +18,11 @@ #include "wayland_output.h" #include "wayland_qpainter_backend.h" -#include "composite.h" #include "cursor.h" #include "dpmsinputeventfilter.h" #include "input.h" #include "keyboard_input.h" #include "pointer_input.h" -#include "scene.h" #include #include @@ -182,7 +180,7 @@ void WaylandSubSurfaceCursor::move(const QPointF &globalPosition) // place the sub-surface relative to the output it is on and factor in the hotspot const auto relativePosition = globalPosition.toPoint() - Cursors::self()->currentCursor()->hotspot() - m_output->geometry().topLeft(); m_subSurface->setPosition(relativePosition); - Compositor::self()->scene()->addRepaintFull(); + m_output->renderLoop()->scheduleRepaint(); } WaylandInputDevice::WaylandInputDevice(KWayland::Client::Keyboard *keyboard, WaylandSeat *seat)