feat: make strict workspaces configurable
This commit is contained in:
parent
6eb2e5fd9c
commit
1318c51a44
@ -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
|
||||
|
@ -34,4 +34,5 @@ pub struct TagState {
|
||||
#[derive(Default, Deserialize)]
|
||||
pub struct Config {
|
||||
pub prepopulate: u8,
|
||||
pub strict: bool,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user