lazy-sddm-theme is only in master though

OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5/plasma5-workspace?expand=0&rev=471
This commit is contained in:
2019-10-10 14:19:37 +00:00
committed by Git OBS Bridge
parent 20b31d1e17
commit 55fb8ebda5
2 changed files with 36 additions and 0 deletions

34
lazy-sddm-theme.patch Normal file
View File

@@ -0,0 +1,34 @@
From b704fa4d735222166cd2d43c9f8da60df5b4fd0d Mon Sep 17 00:00:00 2001
From: Fabian Vogt <fabian@ritter-vogt.de>
Date: Fri, 4 May 2018 09:10:10 +0200
Subject: [PATCH] sddm-theme: Set needsFullUserModel=false
Otherwise SDDM has to load all users even if they're not shown.
See https://github.com/sddm/sddm/pull/1017
---
sddm-theme/Main.qml | 2 ++
sddm-theme/theme.conf.cmake | 1 +
2 files changed, 3 insertions(+)
Index: plasma-workspace-5.15.80git.20190316T190106~d7654042/sddm-theme/Main.qml
===================================================================
--- plasma-workspace-5.15.80git.20190316T190106~d7654042.orig/sddm-theme/Main.qml 2019-03-16 19:01:06.000000000 +0100
+++ plasma-workspace-5.15.80git.20190316T190106~d7654042/sddm-theme/Main.qml 2019-03-16 20:56:49.279402750 +0100
@@ -182,6 +182,8 @@
if ( userListModel.count === 0 ) return false
+ if ( userListModel.hasOwnProperty("containsAllUsers") && !userListModel.containsAllUsers) return false
+
return userListModel.count <= userListModel.disableAvatarsThreshold && (userList.y + mainStack.y) > 0
}
Index: plasma-workspace-5.15.80git.20190316T190106~d7654042/sddm-theme/theme.conf.cmake
===================================================================
--- plasma-workspace-5.15.80git.20190316T190106~d7654042.orig/sddm-theme/theme.conf.cmake 2019-03-16 19:01:06.000000000 +0100
+++ plasma-workspace-5.15.80git.20190316T190106~d7654042/sddm-theme/theme.conf.cmake 2019-03-16 20:56:49.279402750 +0100
@@ -3,3 +3,4 @@ type=image
color=#1d99f3
fontSize=10
background=${CMAKE_INSTALL_PREFIX}/${WALLPAPER_INSTALL_DIR}/Next/contents/images/5120x2880.png
+needsFullUserModel=false

View File

@@ -48,6 +48,8 @@ Patch503: 0001-Set-GTK_BACKEND-x11-in-a-wayland-session.patch
Patch504: 0001-Add-suffix-to-the-wayland-session-s-name.patch
# PATCH-FEATURE-OPENSUSE
Patch506: 0001-Revert-No-icons-on-the-desktop-by-default.patch
# PATCH-FIX-OPENSUSE
Patch507: lazy-sddm-theme.patch
BuildRequires: breeze5-icons
BuildRequires: fdupes
BuildRequires: kf5-filesystem