Skip fallback frame callbacks without active monitors or outputs
Browse files at this commitbb38b7e14f8f7bbef6584cf263bf36b0044d63d3Parent: 5fe8877- fix
- Skip fallback frame callbacks without active monitors or outputs
1 changed file +4 -0
- src/niri.rs +4 -0
src/niri.rsmodified+4 -0
| @@ -5295,6 +5295,10 @@ impl Niri { | ||
| 5295 | 5295 | } |
| 5296 | 5296 | |
| 5297 | 5297 | pub fn send_frame_callbacks_on_fallback_timer(&mut self) { |
| 5298 | + if !self.monitors_active || self.output_state.is_empty() { | |
| 5299 | + return; | |
| 5300 | + } | |
| 5301 | + | |
| 5298 | 5302 | let _span = tracy_client::span!("Niri::send_frame_callbacks_on_fallback_timer"); |
| 5299 | 5303 | |
| 5300 | 5304 | // Make up a bogus output; we don't care about it here anyway, just the throttling timer. |