Wayland compositor (wlroots)
git clone https://git.lucas.co/cce-compositor.git
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));