atagen

monolith

public
Star0
Watch0

Commit 5d66c57fa318

tarball

atagen <boss@atagen.co>2026-10-17 00:58 UTC

1 file changed+10-1
monolith: log layer surfaces and the space their zones reserve

Exclusive zones work nested but not on bare metal, and these lines show which output a bar landed on and what it reserved.
Modified file: crates/monolith/src/layers.rs+10 additions−1 deletions
@@ -41,6 +41,7 @@ impl WlrLayerShellHandler for State {
4141 surface.send_close();
4242 return;
4343 };
44+ tracing::debug!(namespace, output = output.name(), "new layer surface");
4445 let mut map = layer_map_for_output(&output);
4546 if let Err(e) = map.map_layer(&LayerSurface::new(surface, namespace)) {
4647 tracing::warn!("cannot map layer surface: {e}");
@@ -127,7 +128,15 @@ impl State {
127128 right: (area.w - f64::from(zone.loc.x + zone.size.w)).max(0.0),
128129 };
129130 drop(map);
130- changed |= self.layout.set_reserved(o, reserved);
131+ if self.layout.set_reserved(o, reserved) {
132+ tracing::debug!(
133+ output = output.name(),
134+ ?zone,
135+ ?reserved,
136+ "layer zones changed"
137+ );
138+ changed = true;
139+ }
131140 }
132141 if changed {
133142 self.apply_layout();