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

A new commit has been pushed.

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

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..e63bb85
--- /dev/null
+++ b/0001-wayland-touch-Do-not-crash-on-empty-focus-surface.patch
@@ -0,0 +1,29 @@
+From 13ed6caed4580d6d1ee8812a4d180ea8b5035ddc 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>
+---
+ 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 6ca88594a0..5420cc641c 100644
+--- a/src/wayland/meta-wayland-touch.c
++++ b/src/wayland/meta-wayland-touch.c
+@@ -659,6 +659,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 ad31c51..c995562 100644
--- a/mutter.spec
+++ b/mutter.spec
@@ -24,6 +24,8 @@ 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}/%{gnome_major_version}/%{name}-%{gnome_tarball_version}.tar.xz
+# Backport crash fix, will be available in 51.2
+Patch:         0001-wayland-touch-Do-not-crash-on-empty-focus-surface.patch
 
 %gnome_check_version
 

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

only message in thread, other threads:[~2026-10-23 15:16 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:16 [rpms/mutter] main: 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