shell: Handle unmapped windows correctly

This commit is contained in:
Victoria Brekenfeld 2024-03-21 12:53:52 +01:00 committed by Victoria Brekenfeld
parent aaa40df963
commit 973cfed87b
8 changed files with 175 additions and 51 deletions

View file

@ -232,6 +232,10 @@ impl MoveGrabState {
.collect()
}
pub fn element(&self) -> CosmicMapped {
self.window.clone()
}
pub fn window(&self) -> CosmicSurface {
self.window.active_window()
}