diff --git a/daemon/manager.rs b/daemon/manager.rs index 2924329..1043bf1 100644 --- a/daemon/manager.rs +++ b/daemon/manager.rs @@ -333,7 +333,7 @@ impl NiriTag { Ok(()) } WorkspaceActivated { id, .. } => { - if !self.active_ws.contains(&id) { + if self.config.strict && !self.active_ws.contains(&id) { let q = query(&mut self.socket, Request::Workspaces).await?; let wsid = if let Reply::Ok(Response::Workspaces(workspaces)) = q { let new_ws = workspaces diff --git a/lib/main.rs b/lib/main.rs index 1035f97..3e5b44a 100644 --- a/lib/main.rs +++ b/lib/main.rs @@ -34,4 +34,5 @@ pub struct TagState { #[derive(Default, Deserialize)] pub struct Config { pub prepopulate: u8, + pub strict: bool, }