[kwin] plugins/platforms/x11/standalone: x11: register the cursor as well

Aleix Pol null at kde.org
Fri Apr 3 19:02:24 BST 2020


Git commit 77782efc1fa4d59232bee08143c74a29f27d0c6f by Aleix Pol.
Committed on 03/04/2020 at 18:01.
Pushed by apol into branch 'master'.

x11: register the cursor as well

BUG: 419595
CCMAIL: kwin at kde.org

Committing as is because it crashes on load

M  +1    -0    plugins/platforms/x11/standalone/x11cursor.cpp

https://commits.kde.org/kwin/77782efc1fa4d59232bee08143c74a29f27d0c6f

diff --git a/plugins/platforms/x11/standalone/x11cursor.cpp b/plugins/platforms/x11/standalone/x11cursor.cpp
index 711d2a00d..402bc3930 100644
--- a/plugins/platforms/x11/standalone/x11cursor.cpp
+++ b/plugins/platforms/x11/standalone/x11cursor.cpp
@@ -41,6 +41,7 @@ X11Cursor::X11Cursor(QObject *parent, bool xInputSupport)
     , m_hasXInput(xInputSupport)
     , m_needsPoll(false)
 {
+    Cursors::self()->setMouse(this);
     m_resetTimeStampTimer->setSingleShot(true);
     connect(m_resetTimeStampTimer, SIGNAL(timeout()), SLOT(resetTimeStamp()));
     // TODO: How often do we really need to poll?


More information about the kwin mailing list