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:
parent
2de366939b
commit
ef0d7bbc63
1 changed files with 4 additions and 0 deletions
|
|
@ -435,6 +435,10 @@ impl Application for App {
|
||||||
info,
|
info,
|
||||||
img: None,
|
img: None,
|
||||||
});
|
});
|
||||||
|
// Close workspaces view if a window spawns while open
|
||||||
|
if self.visible {
|
||||||
|
return self.hide();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
backend::Event::UpdateToplevel(handle, info) => {
|
backend::Event::UpdateToplevel(handle, info) => {
|
||||||
if let Some(toplevel) =
|
if let Some(toplevel) =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue