Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package latte-dock for openSUSE:Factory 
checked in at 2021-05-18 18:27:01
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/latte-dock (Old)
 and      /work/SRC/openSUSE:Factory/.latte-dock.new.2988 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "latte-dock"

Tue May 18 18:27:01 2021 rev:24 rq:893872 version:0.9.11

Changes:
--------
--- /work/SRC/openSUSE:Factory/latte-dock/latte-dock.changes    2020-04-18 
00:33:01.318374293 +0200
+++ /work/SRC/openSUSE:Factory/.latte-dock.new.2988/latte-dock.changes  
2021-05-18 18:27:27.138699797 +0200
@@ -1,0 +2,6 @@
+Mon May 17 08:03:29 UTC 2021 - Fabian Vogt <[email protected]>
+
+- Add patch to fix compatibility with Plasma 5.22:
+  * 0001-Tasks-support-new-private-api-for-Plasma-5.22.patch
+
+-------------------------------------------------------------------

New:
----
  0001-Tasks-support-new-private-api-for-Plasma-5.22.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ latte-dock.spec ++++++
--- /var/tmp/diff_new_pack.H4Y78F/_old  2021-05-18 18:27:27.570697925 +0200
+++ /var/tmp/diff_new_pack.H4Y78F/_new  2021-05-18 18:27:27.574697907 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package latte-dock
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
 # Copyright (c) 2017  Smith AR <[email protected]>
 #
 # All modifications and additions to the file contributed by third parties
@@ -26,6 +26,8 @@
 Group:          System/GUI/KDE
 URL:            https://phabricator.kde.org/source/latte-dock/
 Source:         
https://download.kde.org/stable/latte-dock/latte-dock-%{version}.tar.xz
+# PATCH-FIX-UPSTREAM
+Patch1:         0001-Tasks-support-new-private-api-for-Plasma-5.22.patch
 BuildRequires:  fdupes
 BuildRequires:  libSM-devel
 BuildRequires:  pkgconfig
@@ -67,7 +69,7 @@
 %lang_package
 
 %prep
-%setup -q
+%autosetup -p1
 
 %build
 %if 0%{?suse_version} <= 1315

++++++ 0001-Tasks-support-new-private-api-for-Plasma-5.22.patch ++++++
>From be510fdfe0e14eeb52bebdd31c21680849f6f013 Mon Sep 17 00:00:00 2001
From: Fabian Vogt <[email protected]>
Date: Mon, 17 May 2021 09:48:01 +0200
Subject: [PATCH] Tasks:support new private api for Plasma 5.22

Backport of 5e1758337cf0231ad53782f8fa92a1bb781a08d1.
---
 plasmoid/package/contents/ui/main.qml          | 7 ++++++-
 plasmoid/package/contents/ui/task/TaskItem.qml | 3 ++-
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/plasmoid/package/contents/ui/main.qml 
b/plasmoid/package/contents/ui/main.qml
index b430d558..78e93eda 100644
--- a/plasmoid/package/contents/ui/main.qml
+++ b/plasmoid/package/contents/ui/main.qml
@@ -67,6 +67,7 @@ Item {
 
     property bool plasma515: latteView ? latteView.plasma515 : 
Latte.WindowSystem.plasmaDesktopVersion >= 
Latte.WindowSystem.makeVersion(5,15,0)
     property bool plasma518: latteView ? latteView.plasma518 : 
Latte.WindowSystem.plasmaDesktopVersion >= 
Latte.WindowSystem.makeVersion(5,18,0)
+    property bool plasmaGreaterThan522: 
Latte.WindowSystem.plasmaDesktopVersion >= 
Latte.WindowSystem.makeVersion(5,21,75)
 
     property bool editMode: latteView ? latteView.editMode : 
plasmoid.userConfiguring
     property bool inConfigureAppletsMode: latteView ? 
latteView.inConfigureAppletsMode : true
@@ -823,7 +824,6 @@ Item {
         id: backend
 
         taskManagerItem: root
-        toolTipItem: toolTipDelegate
         highlightWindows: root.highlightWindows
 
         onAddLauncher: {
@@ -840,6 +840,11 @@ Item {
             if (Latte.WindowSystem.frameworksVersion >= 335104 || (groupDialog 
!== undefined)) {
                 groupDialog = groupDialogGhost;
             }
+
+            //! In Plasma 5.22 toolTipItem was dropped
+            if (!root.plasmaGreaterThan522) {
+                toolTipItem = toolTipDelegate;
+            }
         }
     }
 
diff --git a/plasmoid/package/contents/ui/task/TaskItem.qml 
b/plasmoid/package/contents/ui/task/TaskItem.qml
index 39c0b2de..45927aca 100644
--- a/plasmoid/package/contents/ui/task/TaskItem.qml
+++ b/plasmoid/package/contents/ui/task/TaskItem.qml
@@ -1016,7 +1016,8 @@ MouseArea{
         }
         else{
             if (model.IsGroupParent) {
-                if (Latte.WindowSystem.compositingActive && 
backend.canPresentWindows()) {
+                var canPresentWindowsIsSupported = 
Latte.WindowSystem.compositingActive && (root.plasmaGreaterThan522 ? 
backend.canPresentWindows : backend.canPresentWindows());
+                if (canPresentWindowsIsSupported) {
                     root.presentWindows(root.plasma515 ? model.WinIdList: 
model.LegacyWinIdList );
                 }
             } else {
-- 
2.25.1

Reply via email to