File 0001-Make-the-default-cursor-themed.patch of Package sddm.openSUSE_Backports_SLE-12-SP2
From 7ea57ed6c993619b8bd5a8d256e7f6e9e5a77ee0 Mon Sep 17 00:00:00 2001
From: Fabian Vogt <fabian@ritter-vogt.de>
Date: Thu, 22 Sep 2016 20:07:01 +0200
Subject: [PATCH] Make the default cursor themed
The X root window uses an "X" as the default cursor. To use a themed one,
it has to be set explicitly, e.g. by QML MouseAreas. For themes which do
not have a MouseArea that spans the entire screen, the "X" cursor would
be visible. By setting a cursor in the root QML object, the themed cursor
will be used by default. (https://bugs.kde.org/show_bug.cgi?id=337083)
[ChangeLog][Greeter] Fix default cursor appearance
---
src/greeter/GreeterApp.cpp | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/greeter/GreeterApp.cpp b/src/greeter/GreeterApp.cpp
index 06d13c5..dfe321f 100644
--- a/src/greeter/GreeterApp.cpp
+++ b/src/greeter/GreeterApp.cpp
@@ -32,6 +32,7 @@
#include "MessageHandler.h"
#include <QGuiApplication>
+#include <QQuickItem>
#include <QQuickView>
#include <QQmlContext>
#include <QQmlEngine>
@@ -198,6 +199,10 @@ namespace SDDM {
// set main script as source
view->setSource(QUrl::fromLocalFile(mainScript));
+ // set default cursor
+ QCursor cursor(Qt::ArrowCursor);
+ view->rootObject()->setCursor(cursor);
+
// show
qDebug() << "Adding view for" << screen->name() << screen->geometry();
view->show();
--
2.10.0