1
0
Fork 0

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:
Jonas Ådahl 2024-08-28 23:05:50 +02:00 committed by Marge Bot
parent 1d87bcaab2
commit 66a45809fa

View file

@ -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);