kms: Don't reschedule rendering on inactive sessions
This commit is contained in:
parent
6690e13d54
commit
e1894ef425
1 changed files with 6 additions and 4 deletions
|
|
@ -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,
|
||||
));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue