Move unmap snapshot from Mapped to Tile

This commit is contained in:
Ivan Molodetskikh
2024-05-01 19:00:11 +04:00
parent af9caa1d9b
commit 365dbacae7
7 changed files with 128 additions and 113 deletions
+2 -1
View File
@@ -303,8 +303,9 @@ impl CompositorHandler for State {
// Test client: alacritty with CSD.
if let Some(root) = self.niri.root_surface.get(surface) {
if let Some((mapped, _)) = self.niri.layout.find_window_and_output(root) {
let window = mapped.window.clone();
self.backend.with_primary_renderer(|renderer| {
mapped.store_unmap_snapshot_if_empty(renderer);
self.niri.layout.store_unmap_snapshot(renderer, &window);
});
}
}