interactive: Fix crash if a window is destroyed while moving it

Need to clean this up if it's our grabbed window!

Signed-off-by: Joshua Ashton <joshua@froggi.es>
This commit is contained in:
Joshua Ashton 2021-12-03 08:09:19 +00:00 committed by Johan Malm
parent a9f11c5fc7
commit 3e973c92ab
4 changed files with 10 additions and 0 deletions

View file

@ -81,6 +81,7 @@ handle_destroy(struct wl_listener *listener, void *data)
if (view->toplevel_handle) {
wlr_foreign_toplevel_handle_v1_destroy(view->toplevel_handle);
}
interactive_end(view);
view->xwayland_surface = NULL;
wl_list_remove(&view->link);
wl_list_remove(&view->map.link);