kms: Cleanup old render timers
This commit is contained in:
parent
9611dcd496
commit
1928f9a9af
1 changed files with 3 additions and 0 deletions
|
|
@ -989,6 +989,9 @@ impl KmsState {
|
|||
|
||||
let device = *device;
|
||||
let crtc = *crtc;
|
||||
if let Some(token) = surface.render_timer_token.take() {
|
||||
loop_handle.remove(token);
|
||||
}
|
||||
surface.render_timer_token = Some(loop_handle.insert_source(
|
||||
//if surface.vrr || instant.is_none() {
|
||||
Timer::immediate(), /*} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue