public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/mutter] main: Backport crash fix
Date: Fri, 23 Oct 2026 15:16:05 GMT	[thread overview]
Message-ID: <179276856520.1.8719829120593839540.rpms-mutter-6dd26038832d@fedoraproject.org> (raw)

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
 

                 reply	other threads:[~2026-10-23 15:16 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179276856520.1.8719829120593839540.rpms-mutter-6dd26038832d@fedoraproject.org \
    --to=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox