atagen

monolith

public
Star0
Watch0

Commit 5c48281ebb6b

tarball

atagen <boss@atagen.co>2026-10-18 02:53 UTC

1 file changed+2-0
monolith: focus a window sent to another output

send_to_output left the active output behind while the window kept focus, so focus_dir worked from the old output until something else refocused. Clearing input.followed lets mouse_follows_focus warp the pointer along, so focus_follows_mouse does not pull focus straight back.
Modified file: crates/monolith/src/commands.rs+2 additions
@@ -140,6 +140,8 @@ impl State {
140140 ) {
141141 self.wm.layout.send_to_output(w, o);
142142 self.view_if_first(w);
143+ self.wm.layout.focus(w);
144+ self.input.followed = None;
143145 }
144146 }
145147 Command::Scratchpad { name } => {