feat(swap-workspaces-monitor): command to swap focused monitor workspaces with another monitor

Basically this commit adds a command that allows you to swap two monitors, well it actually swaps
the workspaces between the monitors.
This commit is contained in:
Yusuf007R
2023-06-24 07:04:07 -07:00
committed by جاد
parent 647f5b7ded
commit 6fe2290d74
5 changed files with 101 additions and 0 deletions
+4
View File
@@ -105,6 +105,10 @@ impl Monitor {
}
}
pub fn remove_workspaces(&mut self) -> VecDeque<Workspace> {
self.workspaces_mut().drain(..).collect()
}
#[tracing::instrument(skip(self))]
pub fn move_container_to_workspace(
&mut self,