From 6b84f5bd0000149d4749bb24c05e16d487fb41bc Mon Sep 17 00:00:00 2001 From: Robert Mader Date: Sat, 25 Feb 2023 19:14:22 +0100 Subject: [PATCH] wayland/pointer: Check for surface resource Like we do in several other places since https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1880 Closes https://gitlab.gnome.org/GNOME/mutter/-/issues/2645 Part-of: --- src/wayland/meta-wayland-pointer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wayland/meta-wayland-pointer.c b/src/wayland/meta-wayland-pointer.c index e18ad9ed2..93741175c 100644 --- a/src/wayland/meta-wayland-pointer.c +++ b/src/wayland/meta-wayland-pointer.c @@ -1068,7 +1068,7 @@ meta_wayland_pointer_set_focus (MetaWaylandPointer *pointer, pointer->focus_surface = NULL; } - if (surface != NULL) + if (surface != NULL && surface->resource != NULL) { struct wl_client *client = wl_resource_get_client (surface->resource);