kms: Don't reschedule rendering on inactive sessions

This commit is contained in:
Victoria Brekenfeld 2022-08-31 13:10:24 +02:00
parent 6690e13d54
commit e1894ef425

View file

@ -1004,10 +1004,12 @@ impl KmsState {
&device.render_node,
&mut data.state.common,
) {
slog_scope::error!("Error rendering: {}", err);
return TimeoutAction::ToDuration(Duration::from_secs_f64(
1.0 / surface.refresh_rate as f64,
));
if backend.session.is_active() {
slog_scope::error!("Error rendering: {}", err);
return TimeoutAction::ToDuration(Duration::from_secs_f64(
1.0 / surface.refresh_rate as f64,
));
}
}
}
}