From 798a6e450ad1d2905e0845b287c3f75506138d3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Thu, 1 Jun 2023 13:07:14 +0200 Subject: [PATCH] kms/impl-device/dummy: Add empty disable() implementation We don't need to do anything, since we have no mode setting devices to disable in the dummy implementation. Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/2841 Part-of: --- src/backends/native/meta-kms-impl-device-dummy.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/backends/native/meta-kms-impl-device-dummy.c b/src/backends/native/meta-kms-impl-device-dummy.c index 57fd6de25..f891b461d 100644 --- a/src/backends/native/meta-kms-impl-device-dummy.c +++ b/src/backends/native/meta-kms-impl-device-dummy.c @@ -45,6 +45,11 @@ meta_kms_impl_device_dummy_discard_pending_page_flips (MetaKmsImplDevice *impl_d { } +static void +meta_kms_impl_device_dummy_disable (MetaKmsImplDevice *impl_device) +{ +} + static MetaDeviceFile * meta_kms_impl_device_dummy_open_device_file (MetaKmsImplDevice *impl_device, const char *path, @@ -101,4 +106,6 @@ meta_kms_impl_device_dummy_class_init (MetaKmsImplDeviceDummyClass *klass) meta_kms_impl_device_dummy_open_device_file; impl_device_class->discard_pending_page_flips = meta_kms_impl_device_dummy_discard_pending_page_flips; + impl_device_class->disable = + meta_kms_impl_device_dummy_disable; }