diff options
author | Robert Mader <robert.mader@posteo.de> | 2021-05-12 23:45:07 +0200 |
---|---|---|
committer | Marge Bot <marge-bot@gnome.org> | 2021-08-06 10:28:13 +0000 |
commit | a96caf6defe83483dc31e1caa22690fcce83d139 (patch) | |
tree | 315f577b4958d4bb1cd29b57eb0ce2fdc4ec0766 /src/wayland/meta-wayland-dma-buf.c | |
parent | 9252b7c6b4f2a6d00d0c4e0976819d337c15dd5a (diff) | |
download | mutter-a96caf6defe83483dc31e1caa22690fcce83d139.tar.gz |
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>
Diffstat (limited to 'src/wayland/meta-wayland-dma-buf.c')
-rw-r--r-- | src/wayland/meta-wayland-dma-buf.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/wayland/meta-wayland-dma-buf.c b/src/wayland/meta-wayland-dma-buf.c index 3fc431201..54400ffcd 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 |