Sophie

Sophie

distrib > Mageia > 6 > armv7hl > media > core-updates-src > by-pkgid > 25667ea3beb7fd9832975c8d5ecb1b60 > files > 4

sddm-0.14.0-13.2.mga6.src.rpm

From 4104a820ce620fb584716c49fe37f2236c32424c Mon Sep 17 00:00:00 2001
From: Fabian Vogt <fabian@ritter-vogt.de>
Date: Fri, 23 Sep 2016 11:29:58 +0200
Subject: [PATCH 04/21] Make the default cursor themed (#705)

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 1926b30..39022a0 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>
@@ -211,6 +212,10 @@ namespace SDDM {
         qInfo("Loading %s...", qPrintable(mainScriptUrl.toString()));
         view->setSource(mainScriptUrl);
 
+        // set default cursor
+        QCursor cursor(Qt::ArrowCursor);
+        view->rootObject()->setCursor(cursor);
+
         // show
         qDebug() << "Adding view for" << screen->name() << screen->geometry();
         view->show();
-- 
2.10.2