summaryrefslogtreecommitdiff
path: root/kde-plasma/plasma-workspace/files
diff options
context:
space:
mode:
Diffstat (limited to 'kde-plasma/plasma-workspace/files')
-rw-r--r--kde-plasma/plasma-workspace/files/plasma-workspace-5.18.5-sddm-theme-prevent-logo-leaking.patch94
-rw-r--r--kde-plasma/plasma-workspace/files/plasma-workspace-5.18.5-stop-multiplying-duration-values.patch93
-rw-r--r--kde-plasma/plasma-workspace/files/plasma-workspace-5.19.5-guard-against-no-virtual-desktops.patch46
3 files changed, 46 insertions, 187 deletions
diff --git a/kde-plasma/plasma-workspace/files/plasma-workspace-5.18.5-sddm-theme-prevent-logo-leaking.patch b/kde-plasma/plasma-workspace/files/plasma-workspace-5.18.5-sddm-theme-prevent-logo-leaking.patch
deleted file mode 100644
index 7cbe139a1669..000000000000
--- a/kde-plasma/plasma-workspace/files/plasma-workspace-5.18.5-sddm-theme-prevent-logo-leaking.patch
+++ /dev/null
@@ -1,94 +0,0 @@
-From 68601675d13bdf44248991a56e888093e58c56c3 Mon Sep 17 00:00:00 2001
-From: Filip Fila <filipfila.kde@gmail.com>
-Date: Wed, 13 May 2020 18:08:27 +0200
-Subject: [sddm-theme] Prevent the logo from leaking in after a fadeout
-
-Summary:
-Even when the vendor logo is turned off it can be briefly seen when the login screen changes from the fadeout state back into normal.
-
-Comments in other code say that "OpacityAnimator when starting from 0 is buggy (it shows one frame with opacity 1)" so this patch replaces it with NumberAnimation.
-
-There's also a minor fix included - placing the drop shadow sooner in the hierarchy because it should be drawn underneath an object, not in front of it.
-
-Test Plan:
-Reduce the fadeout time to something small and then:
-
-`sddm-greeter --test-mode --theme /usr/share/sddm/themes/breeze`
-
-Reviewers: ngraham, cblack, #plasma, mart
-
-Reviewed By: ngraham, #plasma, mart
-
-Subscribers: mart, plasma-devel
-
-Tags: #plasma
-
-Differential Revision: https://phabricator.kde.org/D29351
----
- sddm-theme/Main.qml | 44 +++++++++++++++++++++++---------------------
- 1 file changed, 23 insertions(+), 21 deletions(-)
-
-diff --git a/sddm-theme/Main.qml b/sddm-theme/Main.qml
-index 6746238..9910e7f 100644
---- a/sddm-theme/Main.qml
-+++ b/sddm-theme/Main.qml
-@@ -411,26 +411,6 @@ PlasmaCore.ColorScope {
- }
- }
-
-- Image {
-- id: logo
-- visible: config.showlogo == "shown"
-- source: config.logo
-- anchors.horizontalCenter: parent.horizontalCenter
-- anchors.bottom: footer.top
-- anchors.bottomMargin: units.largeSpacing
-- asynchronous: true
-- sourceSize.height: height
-- opacity: loginScreenRoot.uiVisible ? 0 : 1
-- fillMode: Image.PreserveAspectFit
-- height: Math.round(units.gridUnit * 3.5)
-- Behavior on opacity {
-- OpacityAnimator {
-- duration: units.longDuration
-- easing.type: Easing.InOutQuad
-- }
-- }
-- }
--
- DropShadow {
- id: logoShadow
- anchors.fill: logo
-@@ -444,7 +424,29 @@ PlasmaCore.ColorScope {
- color: "black" // matches Breeze window decoration and desktopcontainment
- opacity: loginScreenRoot.uiVisible ? 0 : 1
- Behavior on opacity {
-- OpacityAnimator {
-+ //OpacityAnimator when starting from 0 is buggy (it shows one frame with opacity 1)"
-+ NumberAnimation {
-+ duration: units.longDuration
-+ easing.type: Easing.InOutQuad
-+ }
-+ }
-+ }
-+
-+ Image {
-+ id: logo
-+ visible: config.showlogo == "shown"
-+ source: config.logo
-+ anchors.horizontalCenter: parent.horizontalCenter
-+ anchors.bottom: footer.top
-+ anchors.bottomMargin: units.largeSpacing
-+ asynchronous: true
-+ sourceSize.height: height
-+ opacity: loginScreenRoot.uiVisible ? 0 : 1
-+ fillMode: Image.PreserveAspectFit
-+ height: Math.round(units.gridUnit * 3.5)
-+ Behavior on opacity {
-+ // OpacityAnimator when starting from 0 is buggy (it shows one frame with opacity 1)"
-+ NumberAnimation {
- duration: units.longDuration
- easing.type: Easing.InOutQuad
- }
---
-cgit v1.1
diff --git a/kde-plasma/plasma-workspace/files/plasma-workspace-5.18.5-stop-multiplying-duration-values.patch b/kde-plasma/plasma-workspace/files/plasma-workspace-5.18.5-stop-multiplying-duration-values.patch
deleted file mode 100644
index 83539c14c043..000000000000
--- a/kde-plasma/plasma-workspace/files/plasma-workspace-5.18.5-stop-multiplying-duration-values.patch
+++ /dev/null
@@ -1,93 +0,0 @@
-From 2958702524348e9e4fcbdf490be731e92b353dad Mon Sep 17 00:00:00 2001
-From: Nate Graham <nate@kde.org>
-Date: Tue, 24 Mar 2020 08:10:54 -0600
-Subject: Stop multiplying duration values
-
-Summary:
-After D28144, some animations are now too long because they were inappropriately
-multiplying a duration value. That's no longer necessary, so let's remove the
-multiplication.
-
-Depends on D28144
-
-Test Plan: Various things that were a bit too slow before feel just right now
-
-Reviewers: #vdg, #plasma, cblack
-
-Reviewed By: #vdg, #plasma, cblack
-
-Subscribers: cblack, plasma-devel
-
-Tags: #plasma
-
-Differential Revision: https://phabricator.kde.org/D28238
----
- applets/devicenotifier/package/contents/ui/FullRepresentation.qml | 2 +-
- applets/systemtray/package/contents/ui/ExpanderArrow.qml | 2 +-
- lookandfeel/contents/components/ActionButton.qml | 4 ++--
- lookandfeel/contents/components/UserDelegate.qml | 2 +-
- 4 files changed, 5 insertions(+), 5 deletions(-)
-
-diff --git a/applets/devicenotifier/package/contents/ui/FullRepresentation.qml b/applets/devicenotifier/package/contents/ui/FullRepresentation.qml
-index d15e47c..80b9c73 100644
---- a/applets/devicenotifier/package/contents/ui/FullRepresentation.qml
-+++ b/applets/devicenotifier/package/contents/ui/FullRepresentation.qml
-@@ -225,7 +225,7 @@ MouseArea {
- popupIconTimer.restart()
- }
- }
-- Behavior on height { NumberAnimation { duration: units.shortDuration * 3 } }
-+ Behavior on height { NumberAnimation { duration: units.shortDuration } }
- }
- }
- }
-diff --git a/applets/systemtray/package/contents/ui/ExpanderArrow.qml b/applets/systemtray/package/contents/ui/ExpanderArrow.qml
-index 9baf654..729f56b 100644
---- a/applets/systemtray/package/contents/ui/ExpanderArrow.qml
-+++ b/applets/systemtray/package/contents/ui/ExpanderArrow.qml
-@@ -37,7 +37,7 @@ PlasmaCore.ToolTipArea {
- anchors.fill: parent
- onClicked: root.expanded = !root.expanded
-
-- readonly property int arrowAnimationDuration: units.shortDuration * 3
-+ readonly property int arrowAnimationDuration: units.shortDuration
-
- PlasmaCore.Svg {
- id: arrowSvg
-diff --git a/lookandfeel/contents/components/ActionButton.qml b/lookandfeel/contents/components/ActionButton.qml
-index 9fbd2a8..7a66c56 100644
---- a/lookandfeel/contents/components/ActionButton.qml
-+++ b/lookandfeel/contents/components/ActionButton.qml
-@@ -44,7 +44,7 @@ Item {
- opacity: activeFocus || containsMouse ? 1 : 0.85
- Behavior on opacity {
- PropertyAnimation { // OpacityAnimator makes it turn black at random intervals
-- duration: units.longDuration * 2
-+ duration: units.longDuration
- easing.type: Easing.InOutQuad
- }
- }
-@@ -59,7 +59,7 @@ Item {
- opacity: activeFocus || containsMouse ? (softwareRendering ? 0.8 : 0.15) : (softwareRendering ? 0.6 : 0)
- Behavior on opacity {
- PropertyAnimation { // OpacityAnimator makes it turn black at random intervals
-- duration: units.longDuration * 3
-+ duration: units.longDuration
- easing.type: Easing.InOutQuad
- }
- }
-diff --git a/lookandfeel/contents/components/UserDelegate.qml b/lookandfeel/contents/components/UserDelegate.qml
-index 8882e39..cdb55f1 100644
---- a/lookandfeel/contents/components/UserDelegate.qml
-+++ b/lookandfeel/contents/components/UserDelegate.qml
-@@ -72,7 +72,7 @@ Item {
- Behavior on width {
- PropertyAnimation {
- from: faceSize
-- duration: units.longDuration * 2;
-+ duration: units.longDuration;
- }
- }
- width: isCurrent ? faceSize : faceSize - units.largeSpacing
---
-cgit v1.1
diff --git a/kde-plasma/plasma-workspace/files/plasma-workspace-5.19.5-guard-against-no-virtual-desktops.patch b/kde-plasma/plasma-workspace/files/plasma-workspace-5.19.5-guard-against-no-virtual-desktops.patch
new file mode 100644
index 000000000000..21e335315907
--- /dev/null
+++ b/kde-plasma/plasma-workspace/files/plasma-workspace-5.19.5-guard-against-no-virtual-desktops.patch
@@ -0,0 +1,46 @@
+From 5cb38daedbfa5ef26a47d82d197c96230a004b0f Mon Sep 17 00:00:00 2001
+From: David Edmundson <kde@davidedmundson.co.uk>
+Date: Wed, 30 Sep 2020 08:56:16 +0000
+Subject: [PATCH] [containmentactions] Guard against having no virtual desktops
+
+It can apparently happen that virtual desktops is empty at a given point
+in time. Potentially due to other bugs on the system.
+
+Calls to desktopIds.at(N) will fail.
+
+BUG: 427106
+
+
+(cherry picked from commit 2441c82a2a92535ccc0a9643715427eb362c98e8)
+---
+ containmentactions/switchdesktop/desktop.cpp | 7 +++++++
+ 1 file changed, 7 insertions(+)
+
+diff --git a/containmentactions/switchdesktop/desktop.cpp b/containmentactions/switchdesktop/desktop.cpp
+index 809543a49..dda78c584 100644
+--- a/containmentactions/switchdesktop/desktop.cpp
++++ b/containmentactions/switchdesktop/desktop.cpp
+@@ -85,6 +85,10 @@ void SwitchDesktop::switchTo()
+ void SwitchDesktop::performNextAction()
+ {
+ const QVariantList &desktopIds = m_virtualDesktopInfo->desktopIds();
++ if (desktopIds.isEmpty()) {
++ return;
++ }
++
+ const QVariant &currentDesktop = m_virtualDesktopInfo->currentDesktop();
+ const int currentDesktopIndex = desktopIds.indexOf(currentDesktop);
+
+@@ -100,6 +104,9 @@ void SwitchDesktop::performNextAction()
+ void SwitchDesktop::performPreviousAction()
+ {
+ const QVariantList &desktopIds = m_virtualDesktopInfo->desktopIds();
++ if (desktopIds.isEmpty()) {
++ return;
++ }
+ const QVariant &currentDesktop = m_virtualDesktopInfo->currentDesktop();
+ const int currentDesktopIndex = desktopIds.indexOf(currentDesktop);
+
+--
+GitLab
+