git.lucas.co / cce-compositor
Wayland compositor (wlroots)
git clone https://git.lucas.co/cce-compositor.git

commit7bb800ecc174b2f39a5661850d121f66b72d136b
parent297cfcf34e
authorSivecano <[email protected]>
date2026-01-30 13:28
LayerShellOutput: ensure non_exclusive_area sent

Currently if a window manager is stopped and restarted river will reset
LayerShellOutput.sent.non_exclusive_area but if manageStart() is called
before the new window manager creates a river_layer_shell_output_v1
object river will still fail to send the non_exclusive_area to the new
window manager.

 river/LayerShellOutput.zig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/river/LayerShellOutput.zig b/river/LayerShellOutput.zig
index 360c817..2e5ad05 100644
--- a/river/LayerShellOutput.zig
+++ b/river/LayerShellOutput.zig
@@ -174,7 +174,7 @@ pub fn manageStart(shell_output: *LayerShellOutput) void {
                 shell_output.scheduled.non_exclusive_area.width,
                 shell_output.scheduled.non_exclusive_area.height,
             );
+            shell_output.sent.non_exclusive_area = shell_output.scheduled.non_exclusive_area;
         }
-        shell_output.sent.non_exclusive_area = shell_output.scheduled.non_exclusive_area;
     }
 }