river: make CSD-filters apply to existing views

This commit is contained in:
Leon Henrik Plickat
2021-06-22 13:13:08 +02:00
committed by Isaac Freund
parent 9ec04c764e
commit 968aef3459
4 changed files with 62 additions and 6 deletions

View File

@ -49,7 +49,10 @@ fn handleDestroy(
const self = @fieldParentPtr(Self, "destroy", listener);
self.destroy.link.remove();
self.request_mode.link.remove();
util.gpa.destroy(self);
const node = @fieldParentPtr(std.TailQueue(Self).Node, "data", self);
server.decoration_manager.decorations.remove(node);
util.gpa.destroy(node);
}
fn handleRequestMode(