forge
Explore
Log in

Don't you dare go Hollow

Skip fallback frame callbacks without active monitors or outputs

Browse files at this commit

bb38b7e14f8f7bbef6584cf263bf36b0044d63d3Etienne RobertParent: 5fe8877
  • fix
    • Skip fallback frame callbacks without active monitors or outputs
Show full message
fix(niri): Skip fallback frame callbacks without active monitors or outputs
src/niri.rsmodified+4 -0
@@ -5295,6 +5295,10 @@ impl Niri {
5295 }5295 }
5296 5296
5297 pub fn send_frame_callbacks_on_fallback_timer(&mut self) {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 let _span = tracy_client::span!("Niri::send_frame_callbacks_on_fallback_timer");5302 let _span = tracy_client::span!("Niri::send_frame_callbacks_on_fallback_timer");
5299 5303
5300 // Make up a bogus output; we don't care about it here anyway, just the throttling timer.5304 // Make up a bogus output; we don't care about it here anyway, just the throttling timer.