- Add patch to fix krunner on wayland:
* 0001-Improve-handling-of-lifecycle-methods-in-retain-prio.patch OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5/plasma5-workspace?expand=0&rev=538
This commit is contained in:
@@ -0,0 +1,38 @@
|
|||||||
|
From eb5a3e846e66adcb049cb0b4ec8d791696cd88a8 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Alexander Lohnau <alexander.lohnau@gmx.de>
|
||||||
|
Date: Sat, 12 Sep 2020 13:35:57 +0200
|
||||||
|
Subject: [PATCH] Improve handling of lifecycle methods in retain-prior-search
|
||||||
|
mode
|
||||||
|
|
||||||
|
---
|
||||||
|
lookandfeel/contents/runcommand/RunCommand.qml | 11 ++++++++++-
|
||||||
|
1 file changed, 10 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/lookandfeel/contents/runcommand/RunCommand.qml b/lookandfeel/contents/runcommand/RunCommand.qml
|
||||||
|
index 59ff44d87..6cdb2da06 100644
|
||||||
|
--- a/lookandfeel/contents/runcommand/RunCommand.qml
|
||||||
|
+++ b/lookandfeel/contents/runcommand/RunCommand.qml
|
||||||
|
@@ -43,10 +43,19 @@ ColumnLayout {
|
||||||
|
if (runnerWindow.visible) {
|
||||||
|
queryField.forceActiveFocus();
|
||||||
|
listView.currentIndex = -1
|
||||||
|
+ if (runnerWindow.retainPriorSearch) {
|
||||||
|
+ // Hack: We want to retain the prior seach, but are in a different match session
|
||||||
|
+ // This way we ensure that the prior search gets executed as a new query
|
||||||
|
+ const priorSearch = root.query
|
||||||
|
+ queryField.text = ""
|
||||||
|
+ queryField.text = priorSearch
|
||||||
|
+ }
|
||||||
|
+ queryField.select(root.query.length, 0)
|
||||||
|
} else {
|
||||||
|
root.runner = ""
|
||||||
|
if (runnerWindow.retainPriorSearch) {
|
||||||
|
- queryField.select(root.query.length, 0)
|
||||||
|
+ // Same effect as setting empty string, but we want to retain this string for the next session
|
||||||
|
+ results.model.clear()
|
||||||
|
} else {
|
||||||
|
root.query = ""
|
||||||
|
}
|
||||||
|
--
|
||||||
|
2.25.1
|
||||||
|
|
@@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Sep 23 16:56:59 UTC 2020 - Fabian Vogt <fabian@ritter-vogt.de>
|
||||||
|
|
||||||
|
- Add patch to fix krunner on wayland:
|
||||||
|
* 0001-Improve-handling-of-lifecycle-methods-in-retain-prio.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Sep 21 18:01:54 UTC 2020 - Fabian Vogt <fabian@ritter-vogt.de>
|
Mon Sep 21 18:01:54 UTC 2020 - Fabian Vogt <fabian@ritter-vogt.de>
|
||||||
|
|
||||||
|
@@ -40,6 +40,8 @@ Source2: plasma.keyring
|
|||||||
%endif
|
%endif
|
||||||
Source3: baselibs.conf
|
Source3: baselibs.conf
|
||||||
Source4: plasmafullwayland.desktop
|
Source4: plasmafullwayland.desktop
|
||||||
|
# PATCH-FIX-UPSTREAM
|
||||||
|
Patch1: 0001-Improve-handling-of-lifecycle-methods-in-retain-prio.patch
|
||||||
# PATCHES 501-??? are PATCH-FIX-OPENSUSE
|
# PATCHES 501-??? are PATCH-FIX-OPENSUSE
|
||||||
Patch501: 0001-Use-qdbus-qt5.patch
|
Patch501: 0001-Use-qdbus-qt5.patch
|
||||||
Patch502: 0001-Ignore-default-sddm-face-icons.patch
|
Patch502: 0001-Ignore-default-sddm-face-icons.patch
|
||||||
|
Reference in New Issue
Block a user