added more debug information

This commit is contained in:
Nickiel12 2023-11-16 18:47:51 -08:00
parent 92414fb7ce
commit a84ce23e9c

View file

@ -57,6 +57,8 @@ pub fn run_workspace_selector(cli: &CliArgs) {
let mut ids: Vec<u32> = output.iter().map(|x| x.id).collect(); let mut ids: Vec<u32> = output.iter().map(|x| x.id).collect();
ids.sort(); ids.sort();
debug!("Available monitors: {:#?}", ids);
// Because we might only have a monitor 0 and 3, we need a way to consistently get // Because we might only have a monitor 0 and 3, we need a way to consistently get
// to workspaces within the 10 eww watches // to workspaces within the 10 eww watches
let monitor_num = ids.iter().position(|&r| r == id).unwrap(); let monitor_num = ids.iter().position(|&r| r == id).unwrap();