shell: Properly restore maximized state from minimize/fullscreen

This commit is contained in:
Victoria Brekenfeld 2025-07-02 15:09:06 +02:00 committed by Victoria Brekenfeld
parent b11456614f
commit 165f83fa38
3 changed files with 142 additions and 60 deletions

View file

@ -68,7 +68,10 @@ impl ToplevelManagementHandler for State {
{
for mapped in workspace
.mapped()
.filter(|m| m.maximized_state.lock().unwrap().is_some())
.filter(|m| {
m.maximized_state.lock().unwrap().is_some()
&& !m.windows().any(|(ref w, _)| w == window)
})
.cloned()
.collect::<Vec<_>>()
.into_iter()