fix(cli): respect named ws send behaviour

This commit ensures that the "send" behaviour is respected in
named-workspace command variants such as send-to-named-workspace.
This commit is contained in:
LGUG2Z
2024-05-29 13:10:05 -07:00
parent 6c90001c00
commit 458cac9ce7
+1 -1
View File
@@ -1065,6 +1065,7 @@ impl WindowManager {
target_monitor.add_container(container, workspace_idx)?;
if follow {
if let Some(workspace_idx) = workspace_idx {
target_monitor.focus_workspace(workspace_idx)?;
}
@@ -1072,7 +1073,6 @@ impl WindowManager {
target_monitor.load_focused_workspace(mouse_follows_focus)?;
target_monitor.update_focused_workspace(offset)?;
if follow {
self.focus_monitor(monitor_idx)?;
}