LayerSurface: don't configure in response to unmap

We should wait until the next "initial commit" before
sending a configure after a layer surface unmaps itself.
This commit is contained in:
Isaac Freund
2025-12-20 18:40:30 +00:00
parent d38d4105c4
commit df131f9a9d

View File

@ -366,7 +366,11 @@ fn sendLayerConfigures(
if (@as(?*SceneNodeData, @ptrCast(@alignCast(node.data)))) |node_data| {
const layer_surface = node_data.data.layer_surface;
if (!layer_surface.wlr_layer_surface.initialized) continue;
if (!layer_surface.wlr_layer_surface.surface.mapped and
!layer_surface.wlr_layer_surface.initial_commit)
{
continue;
}
const exclusive = layer_surface.wlr_layer_surface.current.exclusive_zone > 0;
if (exclusive != (mode == .exclusive)) {