wayland/tablet-tool: Check for non-NULL surface resource
A MetaWaylandSurface object can outlive the corresponding wl_surface object since https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1880 . Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/3320 Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3632>
This commit is contained in:
parent
71175a2fd0
commit
0690addcfc
@ -333,7 +333,7 @@ meta_wayland_tablet_tool_set_focus (MetaWaylandTabletTool *tool,
|
||||
tool->focus_surface = NULL;
|
||||
}
|
||||
|
||||
if (surface != NULL && tool->current_tablet)
|
||||
if (surface != NULL && surface->resource != NULL && tool->current_tablet)
|
||||
{
|
||||
struct wl_client *client;
|
||||
struct wl_list *l;
|
||||
|
Loading…
x
Reference in New Issue
Block a user