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

commit3ada23d6a81ddb0213e6c9086eeb89e99c0e99b2
parentee2df112b2
authorIsaac Freund <[email protected]>
date2024-03-20 13:23
layer-shell: crop surfaces to output bounds

 deps/zig-wlroots | 2 +-
 river/Output.zig | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/deps/zig-wlroots b/deps/zig-wlroots
index c1e19f0..a579f9f 160000
--- a/deps/zig-wlroots
+++ b/deps/zig-wlroots
@@ -1 +1 @@
-Subproject commit c1e19f0b9fbdaf4f54a4a2129cf2cd7e68ec09ea
+Subproject commit a579f9f7dae72c960e8804737109815c78e471f4
diff --git a/river/Output.zig b/river/Output.zig
index 970bc8e..e8b72b7 100644
--- a/river/Output.zig
+++ b/river/Output.zig
@@ -374,6 +374,7 @@ fn sendLayerConfigures(
                     layer_surface.scene_layer_surface.tree.node.x,
                     layer_surface.scene_layer_surface.tree.node.y,
                 );
+                layer_surface.scene_layer_surface.tree.node.subsurfaceTreeSetClip(&full_box);
             }
         }
     }