Wayland compositor (wlroots)
git clone https://git.lucas.co/cce-compositor.git
Decrease layout demand timeout to 100ms
Layout generators are generally pretty fast. The timeout is only reached when
the generator is faulty / stuck. In that case, freezing for 1 second is simply
bad UX.
river/LayoutDemand.zig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/river/LayoutDemand.zig b/river/LayoutDemand.zig
index c0567eb..226a40c 100644
--- a/river/LayoutDemand.zig
+++ b/river/LayoutDemand.zig
@@ -38,7 +38,7 @@ const log = std.log.scoped(.layout);
const Error = error{ViewDimensionMismatch};
-const timeout_ms = 1000;
+const timeout_ms = 100;
serial: u32,
/// Number of views for which dimensions have not been pushed.