public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/mutter] f44: Backport crash fix
@ 2026-10-23 15:51 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-10-23 15:51 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/mutter
Branch : f44
Commit : 68cb8b0e532f4f8ccd5677684d5e21e17d3905d1
Author : Jonas Ådahl <jadahl@gmail.com>
Date   : 2026-10-23T23:51:06+08:00
Stats  : +31/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/mutter/c/68cb8b0e532f4f8ccd5677684d5e21e17d3905d1?branch=f44

Log:
Backport crash fix

---
diff --git a/0001-wayland-touch-Do-not-crash-on-empty-focus-surface.patch b/0001-wayland-touch-Do-not-crash-on-empty-focus-surface.patch
new file mode 100644
index 0000000..1436802
--- /dev/null
+++ b/0001-wayland-touch-Do-not-crash-on-empty-focus-surface.patch
@@ -0,0 +1,30 @@
+From c057ad331ea02f5ca015b2235ced8617feb4f9a1 Mon Sep 17 00:00:00 2001
+From: Alessandro Astone <alessandro.astone@canonical.com>
+Date: Wed, 7 Oct 2026 14:46:48 +0200
+Subject: [PATCH] wayland/touch: Do not crash on empty focus surface
+
+Fixes: fb7baffd41 ("wayland/touch: Expose the current touch surface")
+Closes: https://gitlab.gnome.org/GNOME/mutter/-/work_items/4871
+Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/5375>
+(cherry picked from commit 13ed6caed4580d6d1ee8812a4d180ea8b5035ddc)
+---
+ src/wayland/meta-wayland-touch.c | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/src/wayland/meta-wayland-touch.c b/src/wayland/meta-wayland-touch.c
+index 0aff982661..3d6ccde564 100644
+--- a/src/wayland/meta-wayland-touch.c
++++ b/src/wayland/meta-wayland-touch.c
+@@ -656,6 +656,9 @@ touch_can_grab_surface (MetaWaylandTouchInfo *touch_info,
+ {
+   MetaWaylandSurface *subsurface;
+ 
++  if (!touch_info->focus_surface)
++    return FALSE;
++
+   if (touch_info->focus_surface->surface == surface)
+     return TRUE;
+ 
+-- 
+2.54.0
+

diff --git a/mutter.spec b/mutter.spec
index f2479fa..e57b031 100644
--- a/mutter.spec
+++ b/mutter.spec
@@ -26,6 +26,7 @@ Summary:       Window and compositing manager based on Clutter
 License:       GPL-2.0-or-later
 URL:           http://www.gnome.org
 Source0:       http://download.gnome.org/sources/%{name}/%{major_version}/%{name}-%{tarball_version}.tar.xz
+Patch:         0001-wayland-touch-Do-not-crash-on-empty-focus-surface.patch
 
 
 BuildRequires: cvt

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-23 15:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-23 15:51 [rpms/mutter] f44: Backport crash fix 

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox