fix: only unmaximize on activation if maximized != target

This commit is contained in:
Hojjat 2026-09-17 12:41:15 -06:00 • committed by Jacob Kauffmann
parent 50c170c355
commit d36480c1b5

View file

@ -243,7 +243,7 @@ impl State {
{
for mapped in current_workspace
.mapped()
.filter(|m| m.maximized_state.lock().unwrap().is_some())
.filter(|m| m.maximized_state.lock().unwrap().is_some() && *m != &element)
.cloned()
.collect::<Vec<_>>()
.into_iter()