view: Refactor view destruction

Consolidates all of the view destruction code for xwl + xdg into one function.

Fixes several notable bugs along the way:
  - Fixes a crash when alt tabbing when a selected view gets destroyed.
  - Fixes the OSD not updating to reflect a view has been destroyed.
This commit is contained in:
Joshua Ashton 2022-04-21 23:33:44 +00:00 committed by Consolatis
parent dee370f1b4
commit d0b9680d00
4 changed files with 64 additions and 36 deletions

View file

@ -404,6 +404,8 @@ void view_update_app_id(struct view *view);
void view_impl_map(struct view *view);
void view_adjust_size(struct view *view, int *w, int *h);
void view_handle_destroy(struct view *view);
void foreign_toplevel_handle_create(struct view *view);
/*