View: add none impl tag for better safety checks

This commit is contained in:
Isaac Freund
2023-03-10 14:15:15 +01:00
parent fc6d1cca15
commit fcb184f0bd
3 changed files with 22 additions and 2 deletions

View File

@ -153,7 +153,9 @@ fn handleDestroy(listener: *wl.Listener(*wlr.XwaylandSurface), _: *wlr.XwaylandS
self.request_configure.link.remove();
self.set_override_redirect.link.remove();
self.view.destroy();
const view = self.view;
view.impl = .none;
view.destroy();
}
pub fn handleMap(listener: *wl.Listener(*wlr.XwaylandSurface), xwayland_surface: *wlr.XwaylandSurface) void {