Description: change action when mouse move on desktop icon 
Author: Loongson <service@loongnix.cn>

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: https://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: 2026-06-05

--- plasma-desktop-5.20.5.orig/containments/desktop/package/contents/ui/FolderItemDelegate.qml
+++ plasma-desktop-5.20.5/containments/desktop/package/contents/ui/FolderItemDelegate.qml
@@ -107,6 +107,7 @@ Item {
 
             onSelectedChanged: {
                 if (selected && !blank) {
+		    toolTip.hideToolTip();
                     frameLoader.grabToImage(function(result) {
                         dir.addItemDragImage(positioner.map(index), main.x + frameLoader.x, main.y + frameLoader.y, frameLoader.width, frameLoader.height, result.image);
                     });
@@ -157,21 +158,16 @@ Item {
             PlasmaCore.ToolTipArea {
                 id: toolTip
 
-                active: (plasmoid.configuration.toolTips && popupDialog == null && !model.blank)
+		active: (plasmoid.configuration.toolTips || label.truncated) && !model.selected && popupDialog == null && !model.blank
                 interactive: false
                 location: root.useListViewMode ? (plasmoid.location === PlasmaCore.Types.LeftEdge ? PlasmaCore.Types.LeftEdge : PlasmaCore.Types.RightEdge) : plasmoid.location
 
                 onContainsMouseChanged:  {
                     if (containsMouse && !model.blank) {
                         if (toolTip.active) {
-                            toolTip.icon = model.decoration;
+                            toolTip.icon = "";
                             toolTip.mainText = model.display;
-
-                            if (model.size !== undefined) {
-                                    toolTip.subText = model.type + "\n" + model.size;
-                            } else {
-                                toolTip.subText = model.type;
-                            }
+                            toolTip.subText = "";
                         }
 
                         main.GridView.view.hoveredItem = main;
@@ -338,7 +334,7 @@ Item {
                                 target: label
                                 anchors.topMargin: units.smallSpacing
                                 width: Math.round(Math.min(label.implicitWidth + units.smallSpacing, parent.width - units.smallSpacing))
-                                maximumLineCount: plasmoid.configuration.textLines
+				maximumLineCount: model.selected ? 999 : plasmoid.configuration.textLines
                                 horizontalAlignment: Text.AlignHCenter
                             }
                         },
@@ -366,7 +362,7 @@ Item {
                     textFormat: Text.PlainText
 
                     wrapMode: (maximumLineCount == 1) ? Text.NoWrap : Text.Wrap
-                    elide: Text.ElideRight
+		    elide: (model.selected && !root.useListViewMode) ? Text.ElideNone : Text.ElideRight
 
                     color: {
                         if ((frameLoader.textShadow && frameLoader.textShadow.visible) || fallbackRectangleBackground.visible) {
