From 17d6498e3d3709b41f72d40e0b484c46273873a0 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 03:27:06 +0100 Subject: [PATCH] backport upstream package to try to reduce baddamage errors and kwin_x11 crashes ( https://bugs.kde.org/show_bug.cgi?id=461316 ) [release 5.26.3-2mamba;Sun Nov 20 2022] --- ...6.3-backport-reduce_baddamage_errors.patch | 25 +++++++++++++++++++ kwin.spec | 7 +++++- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 kwin-5.26.3-backport-reduce_baddamage_errors.patch diff --git a/kwin-5.26.3-backport-reduce_baddamage_errors.patch b/kwin-5.26.3-backport-reduce_baddamage_errors.patch new file mode 100644 index 0000000..d8c75a1 --- /dev/null +++ b/kwin-5.26.3-backport-reduce_baddamage_errors.patch @@ -0,0 +1,25 @@ +From 7eca5f44dbc2b094468e7430f784ff1e7f372989 Mon Sep 17 00:00:00 2001 +From: Vlad Zahorodnii +Date: Wed, 5 Oct 2022 14:17:09 +0300 +Subject: [PATCH] x11: Reset SurfaceItemX11::m_isDamaged when the damage handle + is destroyed + +--- + src/surfaceitem_x11.cpp | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/surfaceitem_x11.cpp b/src/surfaceitem_x11.cpp +index fef00eb73e..a1a9d8410f 100644 +--- a/src/surfaceitem_x11.cpp ++++ b/src/surfaceitem_x11.cpp +@@ -110,6 +110,7 @@ void SurfaceItemX11::waitForDamage() + void SurfaceItemX11::destroyDamage() + { + if (m_damageHandle != XCB_NONE) { ++ m_isDamaged = false; + xcb_damage_destroy(kwinApp()->x11Connection(), m_damageHandle); + m_damageHandle = XCB_NONE; + } +-- +GitLab + diff --git a/kwin.spec b/kwin.spec index 6b286e4..9db7b2c 100644 --- a/kwin.spec +++ b/kwin.spec @@ -2,7 +2,7 @@ %define plasmaver %(echo %version | cut -d. -f1-3) Name: kwin Version: 5.26.3 -Release: 1mamba +Release: 2mamba Summary: KDE Frameworks 5 window manager Group: Graphical Desktop/Applications/Environment Vendor: openmamba @@ -12,6 +12,7 @@ URL: https://kde.org/ Source: http://download.kde.org/stable/plasma/%{plasmaver}/kwin-%{version}.tar.xz Patch0: kwin-5.22.5-libglvnd-1.3.4.patch Patch1: kwin-5.26.2.1-revert-x11window-redraw-issue.patch +Patch2: kwin-5.26.3-backport-reduce_baddamage_errors.patch License: GPL ## AUTOBUILDREQ-BEGIN #libKF5GlobalAccelPrivate.so.5()(64bit): .so link not found @@ -116,6 +117,7 @@ This package contains libraries and header files for developing applications tha #:<< _EOF #%patch0 -p1 #%patch1 -p1 -b .revert-x11window-redraw-issue +%patch2 -p1 -b .backport-reduce_baddamage_errors %build #:<< _EOF @@ -240,6 +242,9 @@ This package contains libraries and header files for developing applications tha %{_libdir}/cmake/KWinEffects/KWinEffects*.cmake %changelog +* Sun Nov 20 2022 Silvan Calarco 5.26.3-2mamba +- backport upstream package to try to reduce baddamage errors and kwin_x11 crashes ( https://bugs.kde.org/show_bug.cgi?id=461316 ) + * Thu Nov 10 2022 Automatic Build System 5.26.3-1mamba - automatic version update by autodist