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

commitbb5e1b348182f45ac64215f47f291b10852f6a35
parentff6b028084
authorIsaac Freund <[email protected]>
date2025-12-01 16:08
Output: fix sending river_output_v1.removed event

 river/Output.zig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/river/Output.zig b/river/Output.zig
index 61bab2f..b138643 100644
--- a/river/Output.zig
+++ b/river/Output.zig
@@ -216,8 +216,6 @@ fn handleDestroy(listener: *wl.Listener(*wlr.Output), wlr_output: *wlr.Output) v
         }
     }
 
-    output.link.remove();
-
     output.destroy.link.remove();
     output.request_state.link.remove();
     output.frame.link.remove();
@@ -310,6 +308,8 @@ pub fn manageStart(output: *Output) void {
                         }
                     }
                 }
+                output.link.remove();
+
                 util.gpa.destroy(output);
             }
         },