Arrange layers on layer surface destroy

This commit is contained in:
Isaac Freund 2020-04-11 21:48:44 +02:00
parent 59b9172393
commit 28e22d57ce
No known key found for this signature in database
GPG Key ID: 86DED400DDFD7A11

View File

@ -73,6 +73,8 @@ pub const LayerSurface = struct {
const node = @fieldParentPtr(std.TailQueue(LayerSurface).Node, "data", layer_surface);
layer_surface.output.layers[@intCast(usize, @enumToInt(layer_surface.layer))].remove(node);
layer_surface.output.root.server.allocator.destroy(node);
layer_surface.output.arrangeLayers();
}
fn handleCommit(listener: ?*c.wl_listener, data: ?*c_void) callconv(.C) void {