From 7fc7b570f0e5d4432699af2df7f269e51b6f2a01 Mon Sep 17 00:00:00 2001 From: Isaac Freund Date: Wed, 18 Jun 2025 13:46:17 +0200 Subject: [PATCH] View: workaround wlr_box_intersect() quirk --- river/View.zig | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/river/View.zig b/river/View.zig index 3d57ca4..3ba48f5 100644 --- a/river/View.zig +++ b/river/View.zig @@ -446,7 +446,11 @@ pub fn updateSceneState(view: *View) void { for (&view.borders, &border_boxes) |border, *border_box| { border_box.x += box.x; border_box.y += box.y; - _ = border_box.intersection(border_box, &output_box); + if (!border_box.intersection(border_box, &output_box)) { + // TODO(wlroots): remove this redundant code after fixed upstream + // https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/5084 + border_box.* = .{ .x = 0, .y = 0, .width = 0, .height = 0 }; + } border_box.x -= box.x; border_box.y -= box.y;