diff --git a/framebuffers/pipewire/pw_framebuffer.cpp b/framebuffers/pipewire/pw_framebuffer.cpp index bb6ea51d..82e93f3a 100644 --- a/framebuffers/pipewire/pw_framebuffer.cpp +++ b/framebuffers/pipewire/pw_framebuffer.cpp @@ -501,5 +501,10 @@ bool PWFrameBuffer::isValid() const QPoint PWFrameBuffer::cursorPosition() { - return d->cursor->position; + const auto cursor = d->cursor; + if (cursor) { + return cursor->position; + } else { + return {}; + } }