Close workspaces view if window spawns while open

We may want to adjust this if it sometimes leads to confusing behavior.
This may be better for now anyway.

Fixes https://github.com/pop-os/cosmic-workspaces-epoch/issues/28.
This commit is contained in:
Ian Douglas Scott 2024-07-29 22:14:47 -07:00
parent 2de366939b
commit ef0d7bbc63

View file

@ -435,6 +435,10 @@ impl Application for App {
info,
img: None,
});
// Close workspaces view if a window spawns while open
if self.visible {
return self.hide();
}
}
backend::Event::UpdateToplevel(handle, info) => {
if let Some(toplevel) =