stacks: Better handle minimize/unminimize of specific surface

This commit is contained in:
Victoria Brekenfeld 2024-02-27 14:19:59 +01:00 • committed by Victoria Brekenfeld
parent 14a9bd5579
commit 2bf769ac32
3 changed files with 23 additions and 6 deletions

View file

@ -172,7 +172,11 @@ impl XdgShellHandler for State {
.element_for_wl_surface(surface.wl_surface())
.cloned()
{
self.common.shell.minimize_request(&mapped)
if !mapped.is_stack()
|| mapped.active_window().wl_surface().as_ref() == Some(surface.wl_surface())
{
self.common.shell.minimize_request(&mapped)
}
}
}