From b243cd7fc3bc47b0714d98ba8320640169d672bd Mon Sep 17 00:00:00 2001 From: Isaac Freund Date: Fri, 23 Jul 2021 19:03:08 +0200 Subject: [PATCH] river: destroy backend before Root.deinit() Handling output destroy now requires the wlr_output_layout to still be around, as we need it to properly handle cursor state. In order to make sure that all outputs are destroyed before the wlr_output_layout is, simply destroy the backend before calling Root.deinit(). --- river/Server.zig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/river/Server.zig b/river/Server.zig index 6d9a861..0450a7c 100644 --- a/river/Server.zig +++ b/river/Server.zig @@ -139,6 +139,8 @@ pub fn deinit(self: *Self) void { self.wl_server.destroyClients(); + self.backend.destroy(); + self.root.deinit(); self.wl_server.destroy();