git.lucas.co / cce-compositor
Wayland compositor (wlroots)
git clone https://git.lucas.co/cce-compositor.git

commita2d20cf60f0a1aa30fd65c3d6940df81b674380e
parent5901e983db
authorIsaac Freund <[email protected]>
date2021-07-23 19:03
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();