[mutter] backend/native: Sending modifiers to clients can be disabled via udev
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] backend/native: Sending modifiers to clients can be disabled via udev
- Date: Thu, 22 Sep 2022 08:52:51 +0000 (UTC)
commit efc4fa333cd5f0bd129a67d7c4316babf3dc94d5
Author: Michel Dänzer <mdaenzer redhat com>
Date: Tue Sep 20 19:04:33 2022 +0200
backend/native: Sending modifiers to clients can be disabled via udev
Using the new udev tag "mutter-device-disable-client-modifiers".
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2637>
src/backends/native/meta-backend-native.c | 3 +++
src/backends/native/meta-udev.c | 7 +++++++
src/backends/native/meta-udev.h | 2 ++
3 files changed, 12 insertions(+)
---
diff --git a/src/backends/native/meta-backend-native.c b/src/backends/native/meta-backend-native.c
index c8bf097b4e..c86c72dc56 100644
--- a/src/backends/native/meta-backend-native.c
+++ b/src/backends/native/meta-backend-native.c
@@ -595,6 +595,9 @@ add_drm_device (MetaBackendNative *backend_native,
if (meta_is_udev_device_disable_modifiers (device))
flags |= META_KMS_DEVICE_FLAG_DISABLE_MODIFIERS;
+ if (meta_is_udev_device_disable_client_modifiers (device))
+ flags |= META_KMS_DEVICE_FLAG_DISABLE_CLIENT_MODIFIERS;
+
if (meta_is_udev_device_preferred_primary (device))
flags |= META_KMS_DEVICE_FLAG_PREFERRED_PRIMARY;
diff --git a/src/backends/native/meta-udev.c b/src/backends/native/meta-udev.c
index 0a9ed5fd1a..c9b0fc74e5 100644
--- a/src/backends/native/meta-udev.c
+++ b/src/backends/native/meta-udev.c
@@ -102,6 +102,13 @@ meta_is_udev_device_disable_modifiers (GUdevDevice *device)
"mutter-device-disable-kms-modifiers");
}
+gboolean
+meta_is_udev_device_disable_client_modifiers (GUdevDevice *device)
+{
+ return meta_has_udev_device_tag (device,
+ "mutter-device-disable-client-modifiers");
+}
+
gboolean
meta_is_udev_device_ignore (GUdevDevice *device)
{
diff --git a/src/backends/native/meta-udev.h b/src/backends/native/meta-udev.h
index dfd6337a04..27d5d2ed43 100644
--- a/src/backends/native/meta-udev.h
+++ b/src/backends/native/meta-udev.h
@@ -34,6 +34,8 @@ gboolean meta_is_udev_device_boot_vga (GUdevDevice *device);
gboolean meta_is_udev_device_disable_modifiers (GUdevDevice *device);
+gboolean meta_is_udev_device_disable_client_modifiers (GUdevDevice *device);
+
gboolean meta_is_udev_device_ignore (GUdevDevice *device);
gboolean meta_is_udev_test_device (GUdevDevice *device);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]