View: don't clip off CSD shadow and the like

Instead just clip to the output dimensions as originally intended.
This commit is contained in:
Isaac Freund 2024-02-15 11:59:38 +01:00
parent 653b5c6660
commit 2bdbe414e8
No known key found for this signature in database
GPG Key ID: 86DED400DDFD7A11

View File

@ -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;