mirror of
https://github.com/brl/mutter.git
synced 2025-02-12 19:34:10 +00:00
wayland: Check surface before looking up modals
Near window destruction, there might be cases where the surface actor does no longer have a surface, yet it's still in the stage and eligible for picking. In that situation looking for modal dialogs attached to this surface will evidently fail, so avoid this check on a NULL surface. Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/3332 Fixes: 93a9e7f3f ("core: Move code ignoring events on windows with modals to Wayland") Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3660>
This commit is contained in:
parent
683e917854
commit
1cfc1aa92b
@ -603,7 +603,7 @@ repick_for_event (MetaWaylandPointer *pointer,
|
||||
|
||||
surface = meta_surface_actor_wayland_get_surface (actor_wayland);
|
||||
|
||||
if (meta_window_has_modals (meta_wayland_surface_get_window (surface)))
|
||||
if (surface && meta_window_has_modals (meta_wayland_surface_get_window (surface)))
|
||||
surface = NULL;
|
||||
}
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user