decoration: remove listeners on destroy
This commit is contained in:
parent
9ecffe21d8
commit
f3024d9198
1 changed files with 2 additions and 0 deletions
|
@ -47,6 +47,8 @@ fn handleDestroy(
|
||||||
xdg_toplevel_decoration: *wlr.XdgToplevelDecorationV1,
|
xdg_toplevel_decoration: *wlr.XdgToplevelDecorationV1,
|
||||||
) void {
|
) void {
|
||||||
const self = @fieldParentPtr(Self, "destroy", listener);
|
const self = @fieldParentPtr(Self, "destroy", listener);
|
||||||
|
self.destroy.link.remove();
|
||||||
|
self.request_mode.link.remove();
|
||||||
util.gpa.destroy(self);
|
util.gpa.destroy(self);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue