Skip to content

libweston/desktop: Don't destroy the xdg_surface on xdg_toplevel::destroy

Marius Vlad requested to merge mvlad/weston:wip/mvlad/invalid-resource into main

Upon xdg_toplevel::destroy we seem to be calling xdg_surface::destroy destroy handler. Protocol states that we should umap the surface with client having the posibility to getting another toplevel role for the same xdg_surface and re-map the window.

This also adds a guard for an unlikely invalid resource.

Edited by Marius Vlad

Merge request reports

Loading