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().
This commit is contained in:
Isaac Freund 2021-07-23 19:03:08 +02:00
parent 36ce81bb67
commit b243cd7fc3
No known key found for this signature in database
GPG key ID: 86DED400DDFD7A11

View file

@ -139,6 +139,8 @@ pub fn deinit(self: *Self) void {
self.wl_server.destroyClients();
self.backend.destroy();
self.root.deinit();
self.wl_server.destroy();