From bada6e9d1e4f4203bba3c64be9d54aca839cc02f Mon Sep 17 00:00:00 2001 From: Julian Orth Date: Mon, 29 Dec 2025 19:11:44 +0100 Subject: [PATCH] workspace: disable focus history --- src/tree/workspace.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/tree/workspace.rs b/src/tree/workspace.rs index 9dbc56e4..df0e43cf 100644 --- a/src/tree/workspace.rs +++ b/src/tree/workspace.rs @@ -74,7 +74,7 @@ pub struct WorkspaceNode { impl WorkspaceNode { pub fn new(output: &Rc, name: &str, is_dummy: bool) -> Rc { - Rc::new(Self { + let slf = Rc::new(Self { id: output.state.node_ids.next(), state: output.state.clone(), is_dummy, @@ -98,7 +98,9 @@ impl WorkspaceNode { render_highlight: Default::default(), ext_workspaces: Default::default(), opt: Default::default(), - }) + }); + slf.seat_state.disable_focus_history(); + slf } pub fn clear(&self) {