atagen

monolith

public
Star0
Watch0

Commit d2eb67334f9f

tarball

atagen <boss@atagen.co>2026-10-18 09:41 UTC

1 file changed+1-0
monolith: report toplevel outputs only while the window is visible there

wlr-foreign-toplevel output_enter means the toplevel is shown on that output, but the assigned output was sent even for windows on unviewed tags. Bars could not tell which screens show a window and fell back to the single focused toplevel, so occupancy flipped on every output when focus crossed between them.
Modified file: crates/monolith/src/toplevels.rs+1 additions
@@ -97,6 +97,7 @@ impl State {
9797 title,
9898 app_id,
9999 outputs: w
100+ .filter(|_| self.wm.layout.visible(id))
100101 .and_then(|w| w.output)
101102 .and_then(|o| self.backend.output(o))
102103 .into_iter()