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 | // Clients may destroy their subsurfaces before the main surface. Ensure we have a snapshot | 316 | // Clients may destroy their subsurfaces before the main surface. Ensure we have a snapshot |
| 317 | // when that happens, so that the closing animation includes all these subsurfaces. | 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 | if let Some(root) = self.niri.root_surface.get(surface) { | 325 | if let Some(root) = self.niri.root_surface.get(surface) { |
| 321 | if let Some((mapped, _)) = self.niri.layout.find_window_and_output(root) { | 326 | if let Some((mapped, _)) = self.niri.layout.find_window_and_output(root) { |
| 322 | let window = mapped.window.clone(); | 327 | let window = mapped.window.clone(); |