layout: Narrow error! condition in update_render_elements()
Browse files at this commitb3f5255bb95365a01e4fdf9a22acc7edb86ec4e2Parent: 8c169b11 changed file +3 -1
- src/layout/mod.rs +3 -1
src/layout/mod.rsmodified+3 -1
| @@ -2753,7 +2753,9 @@ impl<W: LayoutElement> Layout<W> { | |||
| 2753 | .. | 2753 | .. |
| 2754 | } = &mut self.monitor_set | 2754 | } = &mut self.monitor_set |
| 2755 | else { | 2755 | else { |
| 2756 | - error!("update_render_elements called with no monitors"); | 2756 | + if output.is_some() { |
| 2757 | + error!("update_render_elements called with no monitors but Some output"); | ||
| 2758 | + } | ||
| 2757 | return; | 2759 | return; |
| 2758 | }; | 2760 | }; |
| 2759 | 2761 | ||