1
0
Fork 0

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>
This commit is contained in:
Michel Dänzer 2022-09-20 19:04:33 +02:00 committed by Marge Bot
parent 0b7de744a0
commit efc4fa333c
3 changed files with 12 additions and 0 deletions

View file

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

View file

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

View file

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