From b3f5255bb95365a01e4fdf9a22acc7edb86ec4e2 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Sat, 14 Mar 2026 10:41:28 +0300 Subject: [PATCH] layout: Narrow error! condition in update_render_elements() As far as I can tell, the only place where we can hit this currently is do-screen-transition when no outputs are connected. A check could be trivially added there, but I don't think it's worth enforcing it with an error! -- it's just an optimization (avoiding running unnecessary code) while being rare and difficult to find if it does get logged. --- src/layout/mod.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/layout/mod.rs b/src/layout/mod.rs index 89cc178b..2b991344 100644 --- a/src/layout/mod.rs +++ b/src/layout/mod.rs @@ -2753,7 +2753,9 @@ impl Layout { .. } = &mut self.monitor_set else { - error!("update_render_elements called with no monitors"); + if output.is_some() { + error!("update_render_elements called with no monitors but Some output"); + } return; };