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);