public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/kwin] rawhide: Backport Chromium related bug fixes from future 6.7 release
@ 2026-06-24 5:30 LuK1337
0 siblings, 0 replies; only message in thread
From: LuK1337 @ 2026-06-24 5:30 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/kwin
Branch : rawhide
Commit : ff8d303d152d4e5197b3be2a6606d4affc085b22
Author : LuK1337 <priv.luk@gmail.com>
Date : 2026-06-23T20:21:17+02:00
Stats : +81/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/kwin/c/ff8d303d152d4e5197b3be2a6606d4affc085b22?branch=rawhide
Log:
Backport Chromium related bug fixes from future 6.7 release
---
diff --git a/83e413ab71aac79c14de7e90e941fb2a0b314477.patch b/83e413ab71aac79c14de7e90e941fb2a0b314477.patch
new file mode 100644
index 0000000..05f5c71
--- /dev/null
+++ b/83e413ab71aac79c14de7e90e941fb2a0b314477.patch
@@ -0,0 +1,77 @@
+From 83e413ab71aac79c14de7e90e941fb2a0b314477 Mon Sep 17 00:00:00 2001
+From: Xaver Hugl <xaver.hugl@kde.org>
+Date: Tue, 23 Jun 2026 19:26:52 +0200
+Subject: [PATCH] scene/surfaceitem_wayland: immediately update the release
+ point of the texture
+
+The texture's buffer and release point will be changed before the next time it's
+accessed, so keeping the old release point referenced just unnecessarily keeps a
+buffer from being re-used by the client.
+
+This works around some freezes in Chromium, which doesn't deal well with buffers
+being kept referenced by KWin after it sets a different one on the surface.
+
+BUG: 521687
+BUG: 521960
+
+
+(cherry picked from commit a379d1d66f9a7902fe64e4e57a12ce50ef483968)
+
+Co-authored-by: Xaver Hugl <xaver.hugl@kde.org>
+---
+ src/scene/surfaceitem_wayland.cpp | 4 ++++
+ src/scene/texture.cpp | 5 +++++
+ src/scene/texture.h | 1 +
+ 3 files changed, 10 insertions(+)
+
+diff --git a/src/scene/surfaceitem_wayland.cpp b/src/scene/surfaceitem_wayland.cpp
+index dfba11de5aa..ca08f019635 100644
+--- a/src/scene/surfaceitem_wayland.cpp
++++ b/src/scene/surfaceitem_wayland.cpp
+@@ -8,6 +8,7 @@
+ #include "core/backendoutput.h"
+ #include "core/drmdevice.h"
+ #include "core/renderbackend.h"
++#include "texture.h"
+ #include "wayland/linuxdmabufv1clientbuffer.h"
+ #include "wayland/subcompositor.h"
+ #include "wayland/surface.h"
+@@ -223,6 +224,9 @@ void SurfaceItemWayland::handlePresentationModeHintChanged()
+ void SurfaceItemWayland::handleReleasePointChanged()
+ {
+ m_bufferReleasePoint = m_surface->bufferReleasePoint();
++ if (m_texture) {
++ m_texture->setReleasePoint(m_bufferReleasePoint);
++ }
+ }
+
+ void SurfaceItemWayland::handleAlphaMultiplierChanged()
+diff --git a/src/scene/texture.cpp b/src/scene/texture.cpp
+index 226bc0f0780..fc36622358d 100644
+--- a/src/scene/texture.cpp
++++ b/src/scene/texture.cpp
+@@ -33,4 +33,9 @@ std::shared_ptr<SyncReleasePoint> Texture::releasePoint() const
+ return m_releasePoint;
+ }
+
++void Texture::setReleasePoint(const std::shared_ptr<SyncReleasePoint> &releasePoint)
++{
++ m_releasePoint = releasePoint;
++}
++
+ } // namespace KWin
+diff --git a/src/scene/texture.h b/src/scene/texture.h
+index 5e20c5a7e12..7fae972f9f7 100644
+--- a/src/scene/texture.h
++++ b/src/scene/texture.h
+@@ -26,6 +26,7 @@ public:
+ QSize size() const;
+ bool isFloatingPoint() const;
+ std::shared_ptr<SyncReleasePoint> releasePoint() const;
++ void setReleasePoint(const std::shared_ptr<SyncReleasePoint> &releasePoint);
+
+ virtual void attach(GraphicsBuffer *buffer, const Region ®ion, const std::shared_ptr<SyncReleasePoint> &releasePoint) = 0;
+ virtual void upload(const QImage &image, const Rect ®ion) = 0;
+--
+GitLab
+
diff --git a/kwin.spec b/kwin.spec
index e5fc34e..d382759 100644
--- a/kwin.spec
+++ b/kwin.spec
@@ -12,6 +12,10 @@ Source0: http://download.kde.org/%{stable_kf6}/plasma/%{maj_ver_kf6}.%{min_ver_k
Source1: http://download.kde.org/%{stable_kf6}/plasma/%{maj_ver_kf6}.%{min_ver_kf6}.%{bug_ver_kf6}/%{name}-%{version}.tar.xz.sig
## upstream patches
+# https://bugs.kde.org/521687
+# https://bugs.kde.org/521960
+# https://invent.kde.org/plasma/kwin/-/merge_requests/9465
+Patch: https://invent.kde.org/plasma/kwin/-/commit/83e413ab71aac79c14de7e90e941fb2a0b314477.patch
## proposed patches
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-24 5:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-24 5:30 [rpms/kwin] rawhide: Backport Chromium related bug fixes from future 6.7 release LuK1337
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox