From 17c5eb5ee6bd7370680a97beafcc757f4b52cd6b Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Mon, 3 Apr 2017 16:26:46 +0300 Subject: [PATCH] fix #351,use correct screenGeometry at task filter --this fixes screen filtering for tasks but we should investigate further in the future how to support correct plasmoid.screenGeometry --- containment/contents/ui/main.qml | 2 ++ plasmoid/contents/ui/main.qml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/containment/contents/ui/main.qml b/containment/contents/ui/main.qml index 6862c8416..6db3abcc2 100644 --- a/containment/contents/ui/main.qml +++ b/containment/contents/ui/main.qml @@ -192,6 +192,8 @@ DragDrop.DropArea { property int durationTime: plasmoid.configuration.durationTime property int latteAppletHoveredIndex: latteApplet ? latteApplet.hoveredIndex : -1 property int tasksCount: latteApplet ? latteApplet.tasksCount : 0 + + property rect screenGeometry: dock ? dock.screenGeometry : plasmoid.screenGeometry ///END properties from latteApplet /* Layout.preferredWidth: plasmoid.immutable ? diff --git a/plasmoid/contents/ui/main.qml b/plasmoid/contents/ui/main.qml index 6331bada7..8cf81d0ca 100644 --- a/plasmoid/contents/ui/main.qml +++ b/plasmoid/contents/ui/main.qml @@ -393,7 +393,7 @@ Item { id: tasksModel virtualDesktop: virtualDesktopInfo.currentDesktop - screenGeometry: plasmoid.screenGeometry + screenGeometry: latteDock ? latteDock.screenGeometry : plasmoid.screenGeometry // comment in order to support LTS Plasma 5.8 // screen: plasmoid.screen activity: activityInfo.currentActivity