Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package plasma5-workspace for 
openSUSE:Factory checked in at 2023-08-22 08:55:15
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/plasma5-workspace (Old)
 and      /work/SRC/openSUSE:Factory/.plasma5-workspace.new.1766 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "plasma5-workspace"

Tue Aug 22 08:55:15 2023 rev:218 rq:1104995 version:5.27.7

Changes:
--------
--- /work/SRC/openSUSE:Factory/plasma5-workspace/plasma5-workspace.changes      
2023-08-07 15:28:48.500208851 +0200
+++ 
/work/SRC/openSUSE:Factory/.plasma5-workspace.new.1766/plasma5-workspace.changes
    2023-08-22 08:55:23.446472659 +0200
@@ -1,0 +2,7 @@
+Fri Aug 18 14:03:29 UTC 2023 - Fusion Future <[email protected]>
+
+- Add patch to fix crash when opening windows (kde#473432)
+  * 0001-TriangleMouseFilter-check-intercepted-item-still-exi.patch
+  * 0002-TriangleMouseFilter-also-check-optional-position-has.patch
+
+-------------------------------------------------------------------

New:
----
  0001-TriangleMouseFilter-check-intercepted-item-still-exi.patch
  0002-TriangleMouseFilter-also-check-optional-position-has.patch

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

Other differences:
------------------
++++++ plasma5-workspace.spec ++++++
--- /var/tmp/diff_new_pack.l65doe/_old  2023-08-22 08:55:24.814475258 +0200
+++ /var/tmp/diff_new_pack.l65doe/_new  2023-08-22 08:55:24.822475273 +0200
@@ -45,6 +45,8 @@
 # PATCH-FIX-UPSTREAM
 Patch1:         0001-OSD-Fix-size-calculation-for-progress-value.patch
 Patch2:         0001-shell-avoid-potential-crash-when-previous-window-is-.patch
+Patch3:         0001-TriangleMouseFilter-check-intercepted-item-still-exi.patch
+Patch4:         0002-TriangleMouseFilter-also-check-optional-position-has.patch
 # PATCHES 501-??? are PATCH-FIX-OPENSUSE
 Patch501:       0001-Use-qdbus-qt5.patch
 Patch502:       0001-Ignore-default-sddm-face-icons.patch

++++++ 0001-TriangleMouseFilter-check-intercepted-item-still-exi.patch ++++++
>From dc146e7164a5dcb3a6ed4829398db69378111f0e Mon Sep 17 00:00:00 2001
From: Fushan Wen <[email protected]>
Date: Fri, 18 Aug 2023 12:20:50 +0800
Subject: [PATCH 1/2] TriangleMouseFilter: check intercepted item still exists
 in reset timer

m_interceptedHoverItem.item can be deleted before m_interceptedHoverItem
is reset, so checking interceptedHoverEnterPosition is not enough.

BUG: 473432
FIXED-IN: 5.27.8


(cherry picked from commit 1e8a8d6e6c338bcc66c781863222a038d7136618)
---
 components/trianglemousefilter/trianglemousefilter.cpp | 2 +-
 components/trianglemousefilter/trianglemousefilter.h   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/components/trianglemousefilter/trianglemousefilter.cpp 
b/components/trianglemousefilter/trianglemousefilter.cpp
index 9395f8479..8b414588b 100644
--- a/components/trianglemousefilter/trianglemousefilter.cpp
+++ b/components/trianglemousefilter/trianglemousefilter.cpp
@@ -26,7 +26,7 @@ TriangleMouseFilter::TriangleMouseFilter(QQuickItem *parent)
 
         update();
 
-        if (m_interceptedHoverItem.interceptedHoverEnterPosition.has_value()) {
+        if (m_interceptedHoverItem) {
             
resendHoverEvents(m_interceptedHoverItem.interceptedHoverEnterPosition.value());
         }
 
diff --git a/components/trianglemousefilter/trianglemousefilter.h 
b/components/trianglemousefilter/trianglemousefilter.h
index a18556b90..086c1d62b 100644
--- a/components/trianglemousefilter/trianglemousefilter.h
+++ b/components/trianglemousefilter/trianglemousefilter.h
@@ -29,7 +29,7 @@ struct InterceptedQuickItemData {
 
     explicit operator bool() const
     {
-        return item != nullptr;
+        return !item.isNull();
     }
 };
 
-- 
2.41.0


++++++ 0002-TriangleMouseFilter-also-check-optional-position-has.patch ++++++
>From 88780c843d1dbd63d18edbeecca17fddfe24a004 Mon Sep 17 00:00:00 2001
From: Fushan Wen <[email protected]>
Date: Fri, 18 Aug 2023 22:29:42 +0800
Subject: [PATCH 2/2] TriangleMouseFilter: also check optional position has
 value

If firstEnter is true, only item is set, and interceptedHoverEnterPosition
still has no value until there is another QEvent::HoverEnter event.

Amends 1e8a8d6e6c338bcc66c781863222a038d7136618

CCBUG: 473432


(cherry picked from commit 08c8c00bdd3811b9547360ccb23eeef3da00de54)
---
 components/trianglemousefilter/trianglemousefilter.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/components/trianglemousefilter/trianglemousefilter.h 
b/components/trianglemousefilter/trianglemousefilter.h
index 086c1d62b..b4d6662ab 100644
--- a/components/trianglemousefilter/trianglemousefilter.h
+++ b/components/trianglemousefilter/trianglemousefilter.h
@@ -29,7 +29,7 @@ struct InterceptedQuickItemData {
 
     explicit operator bool() const
     {
-        return !item.isNull();
+        return !item.isNull() && interceptedHoverEnterPosition.has_value();
     }
 };
 
-- 
2.41.0

Reply via email to