Clarify surface destroyed comment
Browse files at this commit3f802d0193d090fb39cdc3a19e68a00cf5e9672aParent: df36eac1 changed file +6 -1
src/handlers/compositor.rsmodified+6 -1
| @@ -316,7 +316,12 @@ impl CompositorHandler for State { | ||
| 316 | 316 | // Clients may destroy their subsurfaces before the main surface. Ensure we have a snapshot |
| 317 | 317 | // when that happens, so that the closing animation includes all these subsurfaces. |
| 318 | 318 | // |
| 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. | |
| 320 | 325 | if let Some(root) = self.niri.root_surface.get(surface) { |
| 321 | 326 | if let Some((mapped, _)) = self.niri.layout.find_window_and_output(root) { |
| 322 | 327 | let window = mapped.window.clone(); |