[mutter] wayland-dma-buf: Fix 'kms-modifiers' experimental setting



commit a96caf6defe83483dc31e1caa22690fcce83d139
Author: Robert Mader <robert mader posteo de>
Date:   Wed May 12 23:45:07 2021 +0200

    wayland-dma-buf: Fix 'kms-modifiers' experimental setting
    
    The setting was ignored in favor of whatever the backend
    returned.
    
    Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1953>

 src/wayland/meta-wayland-dma-buf.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/wayland/meta-wayland-dma-buf.c b/src/wayland/meta-wayland-dma-buf.c
index 3fc4312015..54400ffcd3 100644
--- a/src/wayland/meta-wayland-dma-buf.c
+++ b/src/wayland/meta-wayland-dma-buf.c
@@ -609,6 +609,10 @@ should_send_modifiers (MetaBackend *backend)
 {
   MetaSettings *settings = meta_backend_get_settings (backend);
 
+  if (meta_settings_is_experimental_feature_enabled (
+      settings, META_EXPERIMENTAL_FEATURE_KMS_MODIFIERS))
+    return TRUE;
+
 #ifdef HAVE_NATIVE_BACKEND
   if (META_IS_BACKEND_NATIVE (backend))
     {
@@ -618,8 +622,7 @@ should_send_modifiers (MetaBackend *backend)
     }
 #endif
 
-  return meta_settings_is_experimental_feature_enabled (
-           settings, META_EXPERIMENTAL_FEATURE_KMS_MODIFIERS);
+  return FALSE;
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]