From df131f9a9d454ca60fa58e85edda5bd1eff16956 Mon Sep 17 00:00:00 2001 From: Isaac Freund Date: Sat, 20 Dec 2025 18:40:30 +0000 Subject: [PATCH] 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. --- river/Output.zig | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/river/Output.zig b/river/Output.zig index 7fde739..7a8228c 100644 --- a/river/Output.zig +++ b/river/Output.zig @@ -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)) {