stacks: Better handle minimize/unminimize of specific surface
This commit is contained in:
parent
14a9bd5579
commit
2bf769ac32
3 changed files with 23 additions and 6 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue