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 {
52955295 }
52965296
52975297 pub fn send_frame_callbacks_on_fallback_timer(&mut self) {
5298+ if !self.monitors_active || self.output_state.is_empty() {
5299+ return;
5300+ }
5301+
52985302 let _span = tracy_client::span!("Niri::send_frame_callbacks_on_fallback_timer");
52995303
53005304 // Make up a bogus output; we don't care about it here anyway, just the throttling timer.