From a4ad58a1e88fc811a132e5dd837ff32209515e35 Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Thu, 26 Jan 2017 21:56:46 +0200 Subject: [PATCH] small fixes with new right click menu --this fixes right click in zoom factor area for latte plasmoid and right click in containment areas that dont have an applet --- app/dockview.cpp | 4 ++++ plasmoid/contents/ui/main.qml | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/app/dockview.cpp b/app/dockview.cpp index e72212717..8d483fc87 100644 --- a/app/dockview.cpp +++ b/app/dockview.cpp @@ -578,6 +578,10 @@ void DockView::mousePressEvent(QMouseEvent *event) } } + if (!applet) { + applet = containment(); + } + if (applet) { KPluginMetaData meta = applet->kPackage().metadata(); diff --git a/plasmoid/contents/ui/main.qml b/plasmoid/contents/ui/main.qml index d92a7deee..784ec3833 100644 --- a/plasmoid/contents/ui/main.qml +++ b/plasmoid/contents/ui/main.qml @@ -587,7 +587,9 @@ Item { target: icList - property int maxSize: root.statesLineSize + root.iconSize + root.iconMargin - 1 + property int maxSize: (root.hoveredIndex>=0 && !root.dragSource) ? + root.statesLineSize + root.zoomFactor * (root.iconSize + root.iconMargin) - 1 : + root.statesLineSize + root.iconSize + root.iconMargin - 1 onUrlsDropped: { // If all dropped URLs point to application desktop files, we'll add a launcher for each of them.