Commit 5d66c57fa318
tarball1 file changed+10-1
@@ -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();