diff options
| author | gibberish <gbjgms@gmail.com> | 2025-06-16 17:23:29 +0700 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2025-08-27 09:17:58 +0300 |
| commit | e038b8770a17b67cbf9c9d007a1f3a9ac0b53c60 (patch) | |
| tree | 3a23444922e8b794ecb584374b39e71c2c661caf /niri-ipc | |
| parent | f6f4bf97c368d9a8539137896f786291d859cadf (diff) | |
| download | niri-e038b8770a17b67cbf9c9d007a1f3a9ac0b53c60.tar.gz niri-e038b8770a17b67cbf9c9d007a1f3a9ac0b53c60.tar.bz2 niri-e038b8770a17b67cbf9c9d007a1f3a9ac0b53c60.zip | |
Fix focus=false for move-column-to-workspace*, add to move-window-to-workspace-up/down
Diffstat (limited to 'niri-ipc')
| -rw-r--r-- | niri-ipc/src/lib.rs | 18 |
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", |
