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]

This commit is contained in:
Silvan Calarco 2024-01-06 03:27:06 +01:00
parent dd4d8e6710
commit 17d6498e3d
2 changed files with 31 additions and 1 deletions

View File

@ -0,0 +1,25 @@
From 7eca5f44dbc2b094468e7430f784ff1e7f372989 Mon Sep 17 00:00:00 2001
From: Vlad Zahorodnii <vlad.zahorodnii@kde.org>
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

View File

@ -2,7 +2,7 @@
%define plasmaver %(echo %version | cut -d. -f1-3) %define plasmaver %(echo %version | cut -d. -f1-3)
Name: kwin Name: kwin
Version: 5.26.3 Version: 5.26.3
Release: 1mamba Release: 2mamba
Summary: KDE Frameworks 5 window manager Summary: KDE Frameworks 5 window manager
Group: Graphical Desktop/Applications/Environment Group: Graphical Desktop/Applications/Environment
Vendor: openmamba Vendor: openmamba
@ -12,6 +12,7 @@ URL: https://kde.org/
Source: http://download.kde.org/stable/plasma/%{plasmaver}/kwin-%{version}.tar.xz Source: http://download.kde.org/stable/plasma/%{plasmaver}/kwin-%{version}.tar.xz
Patch0: kwin-5.22.5-libglvnd-1.3.4.patch Patch0: kwin-5.22.5-libglvnd-1.3.4.patch
Patch1: kwin-5.26.2.1-revert-x11window-redraw-issue.patch Patch1: kwin-5.26.2.1-revert-x11window-redraw-issue.patch
Patch2: kwin-5.26.3-backport-reduce_baddamage_errors.patch
License: GPL License: GPL
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
#libKF5GlobalAccelPrivate.so.5()(64bit): .so link not found #libKF5GlobalAccelPrivate.so.5()(64bit): .so link not found
@ -116,6 +117,7 @@ This package contains libraries and header files for developing applications tha
#:<< _EOF #:<< _EOF
#%patch0 -p1 #%patch0 -p1
#%patch1 -p1 -b .revert-x11window-redraw-issue #%patch1 -p1 -b .revert-x11window-redraw-issue
%patch2 -p1 -b .backport-reduce_baddamage_errors
%build %build
#:<< _EOF #:<< _EOF
@ -240,6 +242,9 @@ This package contains libraries and header files for developing applications tha
%{_libdir}/cmake/KWinEffects/KWinEffects*.cmake %{_libdir}/cmake/KWinEffects/KWinEffects*.cmake
%changelog %changelog
* Sun Nov 20 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 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 <autodist@mambasoft.it> 5.26.3-1mamba * Thu Nov 10 2022 Automatic Build System <autodist@mambasoft.it> 5.26.3-1mamba
- automatic version update by autodist - automatic version update by autodist