kms/impl-device: Disarm deadline timer when disabling
Otherwise we'll end up firing when not expected to, e.g. when the screen
is locked and monitors are all turned off.
Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/3629
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3982>
(cherry picked from commit 66a45809fa
)
This commit is contained in:
parent
a8cc1739d3
commit
3715012588
1 changed files with 2 additions and 0 deletions
|
@ -1811,6 +1811,8 @@ meta_kms_impl_device_disable (MetaKmsImplDevice *impl_device)
|
|||
if (!priv->device_file)
|
||||
return;
|
||||
|
||||
disarm_all_deadline_timers (impl_device);
|
||||
|
||||
meta_kms_impl_device_hold_fd (impl_device);
|
||||
meta_thread_inhibit_realtime_in_impl (thread);
|
||||
klass->disable (impl_device);
|
||||
|
|
Loading…
Reference in a new issue