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

commitdbe2392fbd54274f46055731aa1c6d6309d6835d
parent90bc035bc0
authorLeon Henrik Plickat <[email protected]>
date2021-06-14 19:51
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.