fixed workspace map function
This commit is contained in:
parent
9662ecef5a
commit
686ecc7a0c
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ pub fn run_workspace_selector(cli: &CliArgs) {
|
||||||
debug!("Monitor number adjusted: {}", monitor_num);
|
debug!("Monitor number adjusted: {}", monitor_num);
|
||||||
|
|
||||||
// Because there is a monitor 0, make sure it is always at least monitor 1
|
// Because there is a monitor 0, make sure it is always at least monitor 1
|
||||||
let target_workspace = (cli.source_workspace.unwrap() * (monitor_num + 2) as i32) - 1;
|
let target_workspace = (cli.source_workspace.unwrap() * (ids.len()) as i32) - monitor_num as i32;
|
||||||
|
|
||||||
debug!("Target workspace: {}", target_workspace);
|
debug!("Target workspace: {}", target_workspace);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue