diff --git a/src/backends/x11/standalone/x11_standalone_backend.cpp b/src/backends/x11/standalone/x11_standalone_backend.cpp index dddebd3861..86c7e0354e 100644 --- a/src/backends/x11/standalone/x11_standalone_backend.cpp +++ b/src/backends/x11/standalone/x11_standalone_backend.cpp @@ -8,8 +8,6 @@ */ #include "x11_standalone_backend.h" -#include - #include "atoms.h" #include "core/session.h" #include "x11_standalone_cursor.h" @@ -177,8 +175,8 @@ std::unique_ptr X11StandaloneBackend::createScreenEdge(ScreenEdges *edges) void X11StandaloneBackend::createPlatformCursor(QObject *parent) { - auto c = new X11Cursor(parent, m_xinputIntegration != nullptr); #if HAVE_X11_XINPUT + auto c = new X11Cursor(parent, m_xinputIntegration != nullptr); if (m_xinputIntegration) { m_xinputIntegration->setCursor(c); // we know we have xkb already @@ -186,6 +184,8 @@ void X11StandaloneBackend::createPlatformCursor(QObject *parent) xkb->setConfig(kwinApp()->kxkbConfig()); xkb->reconfigure(); } +#else + new X11Cursor(parent, false); #endif } diff --git a/src/backends/x11/standalone/x11_standalone_backend.h b/src/backends/x11/standalone/x11_standalone_backend.h index f069f532c0..f8d3314948 100644 --- a/src/backends/x11/standalone/x11_standalone_backend.h +++ b/src/backends/x11/standalone/x11_standalone_backend.h @@ -9,8 +9,9 @@ #pragma once -#include "core/outputbackend.h" +#include +#include "core/outputbackend.h" #include #include @@ -82,7 +83,9 @@ private: void updateRefreshRate(); void updateCursor(); +#if HAVE_X11_XINPUT std::unique_ptr m_xinputIntegration; +#endif std::unique_ptr m_updateOutputsTimer; Display *m_x11Display; std::unique_ptr m_windowSelector;