diff --git a/src/app.rs b/src/app.rs index e1a9563..ae8ae3d 100644 --- a/src/app.rs +++ b/src/app.rs @@ -75,6 +75,9 @@ impl App { pos: Option, size: Option, ) -> Result<()> { + // remove and close existing window of the same type + self.windows.remove(window_name).map(|window| window.close()); + let mut window_def = self .eww_config .get_windows()