aboutsummaryrefslogtreecommitdiff
path: root/niri-ipc/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'niri-ipc/src/lib.rs')
-rw-r--r--niri-ipc/src/lib.rs18
1 files changed, 16 insertions, 2 deletions
diff --git a/niri-ipc/src/lib.rs b/niri-ipc/src/lib.rs
index f7251917..fa524970 100644
--- a/niri-ipc/src/lib.rs
+++ b/niri-ipc/src/lib.rs
@@ -447,9 +447,23 @@ pub enum Action {
/// Focus the previous workspace.
FocusWorkspacePrevious {},
/// Move the focused window to the workspace below.
- MoveWindowToWorkspaceDown {},
+ MoveWindowToWorkspaceDown {
+ /// Whether the focus should follow the target workspace.
+ ///
+ /// If `true` (the default), 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 window to the workspace above.
- MoveWindowToWorkspaceUp {},
+ MoveWindowToWorkspaceUp {
+ /// Whether the focus should follow the target workspace.
+ ///
+ /// If `true` (the default), 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 a window to a workspace.
#[cfg_attr(
feature = "clap",