Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.3:Rings:2-TestDVD
sddm
0001-Make-the-default-cursor-themed.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-Make-the-default-cursor-themed.patch of Package sddm
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(+) Index: sddm-0.14.0/src/greeter/GreeterApp.cpp =================================================================== --- sddm-0.14.0.orig/src/greeter/GreeterApp.cpp +++ sddm-0.14.0/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();
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor