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>
This commit is contained in:
parent
1d87bcaab2
commit
66a45809fa
1 changed files with 2 additions and 0 deletions
|
@ -2141,6 +2141,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