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
+7 -7
View File
@@ -1065,14 +1065,14 @@ impl WindowManager {
target_monitor.add_container(container, workspace_idx)?;
if let Some(workspace_idx) = workspace_idx {
target_monitor.focus_workspace(workspace_idx)?;
}
target_monitor.load_focused_workspace(mouse_follows_focus)?;
target_monitor.update_focused_workspace(offset)?;
if follow {
if let Some(workspace_idx) = workspace_idx {
target_monitor.focus_workspace(workspace_idx)?;
}
target_monitor.load_focused_workspace(mouse_follows_focus)?;
target_monitor.update_focused_workspace(offset)?;
self.focus_monitor(monitor_idx)?;
}