mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-21 02:01:55 +07:00
layout: Use tiles_mut() in Workspace::clear_unmap_snapshot()
This commit is contained in:
@@ -1644,12 +1644,10 @@ impl<W: LayoutElement> Workspace<W> {
|
||||
}
|
||||
|
||||
pub fn clear_unmap_snapshot(&mut self, window: &W::Id) {
|
||||
for col in &mut self.columns {
|
||||
for tile in &mut col.tiles {
|
||||
if tile.window().id() == window {
|
||||
let _ = tile.take_unmap_snapshot();
|
||||
return;
|
||||
}
|
||||
for tile in self.tiles_mut() {
|
||||
if tile.window().id() == window {
|
||||
let _ = tile.take_unmap_snapshot();
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user