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

commitd979f0925ff24fb0cab27e1364e6f95d113b7fbc
parent8e1f6d3fe7
authorIsaac Freund <[email protected]>
date2024-02-15 11:59
View: don't clip off CSD shadow and the like

Instead just clip to the output dimensions as originally intended.

 river/View.zig | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/river/View.zig b/river/View.zig
index cd6a272..4de5fc1 100644
--- a/river/View.zig
+++ b/river/View.zig
@@ -335,8 +335,7 @@ pub fn updateCurrent(view: *Self) void {
     }
 
     {
-        var surface_clip: wlr.Box = undefined;
-        _ = surface_clip.intersection(box, &output_box);
+        var surface_clip: wlr.Box = output_box;
 
         // The clip is applied relative to the root node of the subsurface tree.
         surface_clip.x -= box.x;