aboutsummaryrefslogtreecommitdiff
path: root/niri-ipc/src
diff options
context:
space:
mode:
Diffstat (limited to 'niri-ipc/src')
-rw-r--r--niri-ipc/src/lib.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/niri-ipc/src/lib.rs b/niri-ipc/src/lib.rs
index 591c1bf6..fb90dbe7 100644
--- a/niri-ipc/src/lib.rs
+++ b/niri-ipc/src/lib.rs
@@ -426,6 +426,14 @@ pub enum Action {
/// Reference (index or name) of the workspace to move the window to.
#[cfg_attr(feature = "clap", arg())]
reference: WorkspaceReferenceArg,
+
+ /// Whether the focus should follow the moved window.
+ ///
+ /// If `true` (the default) and the window to move is focused, the focus will follow the
+ /// window to the new workspace. If `false`, the focus will remain on the original
+ /// workspace.
+ #[cfg_attr(feature = "clap", arg(long, action = clap::ArgAction::Set, default_value_t = true))]
+ focus: bool,
},
/// Move the focused column to the workspace below.
MoveColumnToWorkspaceDown {},