File: upstream_9a223547_AbstractKickoffItemDelegate-block-action-trigger-while-dragging.patch

package info (click to toggle)
plasma-desktop 4%3A6.3.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 61,044 kB
  • sloc: cpp: 37,691; ansic: 2,617; python: 1,386; javascript: 1,163; xml: 1,082; sh: 128; makefile: 16
file content (28 lines) | stat: -rw-r--r-- 1,268 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From 9a2235472c2e2ca37203fb961875c8172a529de9 Mon Sep 17 00:00:00 2001
From: Noah Davis <noahadvs@gmail.com>
Date: Mon, 14 Apr 2025 14:10:09 -0400
Subject: [PATCH] AbstractKickoffItemDelegate: block action trigger while
 dragging

BUG: 501585
---
 .../package/contents/ui/AbstractKickoffItemDelegate.qml        | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/applets/kickoff/package/contents/ui/AbstractKickoffItemDelegate.qml b/applets/kickoff/package/contents/ui/AbstractKickoffItemDelegate.qml
index 077962f05f..4f955cf3d3 100644
--- a/applets/kickoff/package/contents/ui/AbstractKickoffItemDelegate.qml
+++ b/applets/kickoff/package/contents/ui/AbstractKickoffItemDelegate.qml
@@ -122,7 +122,8 @@ T.ItemDelegate {
             // Unless we're showing search results, eat the activation if we
             // don't have focus, to prevent the return/enter key from
             // inappropriately activating unfocused items
-            if (!root.activeFocus && !root.isSearchResult) {
+            // Also block activation while dragging.
+            if ((!root.activeFocus && !root.isSearchResult) || dragHandler.active || touchDragHandler.active) {
                 return;
             }
             view.currentIndex = index
-- 
GitLab