forge
Explore
Log in

Don't you dare go Hollow

Clarify surface destroyed comment

Browse files at this commit

3f802d0193d090fb39cdc3a19e68a00cf5e9672aIvan MolodetskikhParent: df36eac
src/handlers/compositor.rsmodified+6 -1
@@ -316,7 +316,12 @@ impl CompositorHandler for State {
316316 // Clients may destroy their subsurfaces before the main surface. Ensure we have a snapshot
317317 // when that happens, so that the closing animation includes all these subsurfaces.
318318 //
319- // Test client: alacritty with CSD.
319+ // Test client: alacritty with CSD <= 0.13 (it was fixed in winit afterwards:
320+ // https://github.com/rust-windowing/winit/pull/3625).
321+ //
322+ // This is still not perfect, as this function is called already after the (first)
323+ // subsurface is destroyed; in the case of alacritty, this is the top CSD shadow. But, it
324+ // gets most of the job done.
320325 if let Some(root) = self.niri.root_surface.get(surface) {
321326 if let Some((mapped, _)) = self.niri.layout.find_window_and_output(root) {
322327 let window = mapped.window.clone();