Skip to content

Commit

Permalink
Remove MoveFocusedWindowToWorkspace ...
Browse files Browse the repository at this point in the history
... as it's the same as MoveToWorkspace(ws, None), and there is no
reason to keep both
  • Loading branch information
sij1nk committed Jan 27, 2024
1 parent a71b651 commit 5d8703e
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/dispatch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -289,12 +289,6 @@ pub enum DispatchType<'a> {
WorkspaceIdentifierWithSpecial<'a>,
Option<WindowIdentifier<'a>>,
),
/// This dispatcher moves the focused window to a specified workspace, and
/// changes the active workspace aswell
MoveFocusedWindowToWorkspace(WorkspaceIdentifier<'a>),
/// This dispatcher moves the focused window to a specified workspace, and
/// does not change workspaces
MoveFocusedWindowToWorkspaceSilent(WorkspaceIdentifier<'a>),
/// This dispatcher floats a window (current if not specified)
ToggleFloating(Option<WindowIdentifier<'a>>),
/// This dispatcher toggles the current window fullscreen state
Expand Down Expand Up @@ -480,8 +474,6 @@ 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!("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 5d8703e

Please sign in to comment.