mirror of
https://github.com/zoriya/river.git
synced 2026-06-03 19:11:06 +00:00
decoration: remove listeners on destroy
This commit is contained in:
@@ -47,6 +47,8 @@ fn handleDestroy(
|
||||
xdg_toplevel_decoration: *wlr.XdgToplevelDecorationV1,
|
||||
) void {
|
||||
const self = @fieldParentPtr(Self, "destroy", listener);
|
||||
self.destroy.link.remove();
|
||||
self.request_mode.link.remove();
|
||||
util.gpa.destroy(self);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user