Skip to content

Commit

Permalink
Merge pull request #159 from sij1nk/fix/move-focused-window-to-worksp…
Browse files Browse the repository at this point in the history
…ace-dispatch-str

Fix dispatch_str for MoveFocusedWindowToWorkspace(Silent)
  • Loading branch information
yavko authored Jan 27, 2024
2 parents 54a0446 + 28f00f6 commit 8a1bbdf
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/dispatch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -297,9 +297,14 @@ pub enum DispatchType<'a> {
),
/// This dispatcher moves the focused window to a specified workspace, and
/// changes the active workspace aswell
#[deprecated(since = "0.3.13", note = "use MoveToWorkspace(work, None) instead")]
MoveFocusedWindowToWorkspace(WorkspaceIdentifier<'a>),
/// This dispatcher moves the focused window to a specified workspace, and
/// does not change workspaces
#[deprecated(
since = "0.3.13",
note = "use MoveToWorkspaceSilent(work, None) instead"
)]
MoveFocusedWindowToWorkspaceSilent(WorkspaceIdentifier<'a>),
/// This dispatcher floats a window (current if not specified)
ToggleFloating(Option<WindowIdentifier<'a>>),
Expand Down Expand Up @@ -486,8 +491,8 @@ pub(crate) fn gen_dispatch_str(cmd: DispatchType, dispatch: bool) -> crate::Resu
MoveToWorkspace(work, None) => format!("movetoworkspace{sep}{work}"),
MoveToWorkspaceSilent(work, Some(win)) => format!("movetoworkspacesilent{sep}{work},{win}"),
MoveToWorkspaceSilent(work, None) => format!("movetoworkspacesilent{sep}{work}"),
MoveFocusedWindowToWorkspace(work) => format!("workspace{sep}{work}"),
MoveFocusedWindowToWorkspaceSilent(work) => format!("workspace{sep}{work}"),
MoveFocusedWindowToWorkspace(work) => format!("movetoworkspace{sep}{work}"),
MoveFocusedWindowToWorkspaceSilent(work) => format!("movetoworkspacesilent{sep}{work}"),
ToggleFloating(Some(v)) => format!("togglefloating{sep}{v}"),
ToggleFloating(None) => "togglefloating".to_string(),
ToggleFullscreen(ftype) => format!("fullscreen{sep}{ftype}"),
Expand Down

0 comments on commit 8a1bbdf

Please sign in to comment.