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

commitba53ec271835fe5348339291a7b11c30d8acd703
parentb1a53b4061
authorIsaac Freund <[email protected]>
date2026-03-28 11:23
Window: remove redundant code after wlroots update

 river/Window.zig | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/river/Window.zig b/river/Window.zig
index ce1dbc6..31e1f7a 100644
--- a/river/Window.zig
+++ b/river/Window.zig
@@ -998,11 +998,7 @@ fn drawBorders(window: *Window) void {
             .{ .name = "bottom", .box = &bottom },
         }) |edge| {
             if (!requested.clip.empty()) {
-                if (!edge.box.intersection(edge.box, &requested.clip)) {
-                    // TODO(wlroots): remove this redundant code after fixed upstream
-                    // https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/5084
-                    edge.box.* = .{ .x = 0, .y = 0, .width = 0, .height = 0 };
-                }
+                _ = edge.box.intersection(edge.box, &requested.clip);
             }
             const rect = @field(window.border, edge.name);
             rect.node.setEnabled(@field(border.edges, edge.name));