mirror of
https://github.com/brl/mutter.git
synced 2024-12-26 21:02:14 +00:00
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: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2869>
This commit is contained in:
parent
1b52926031
commit
6b84f5bd00
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user