From f4201bc3d3790a6d3c964a729eca22efbd1b1940 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Fri, 6 Dec 2024 09:17:38 +0100 Subject: [PATCH] service-channel: Add global shotcuts portal backend client type The global shortcuts portal backend component lives in gnome-control-center, and is responsible for preseting the GUI for managing client provided global shortcuts. Part-of: --- data/dbus-interfaces/org.gnome.Mutter.ServiceChannel.xml | 1 + src/core/meta-service-channel.c | 1 + src/core/meta-service-channel.h | 1 + src/wayland/meta-wayland-x11-interop.c | 1 + 4 files changed, 4 insertions(+) diff --git a/data/dbus-interfaces/org.gnome.Mutter.ServiceChannel.xml b/data/dbus-interfaces/org.gnome.Mutter.ServiceChannel.xml index 1c105cd35..97c3b872b 100644 --- a/data/dbus-interfaces/org.gnome.Mutter.ServiceChannel.xml +++ b/data/dbus-interfaces/org.gnome.Mutter.ServiceChannel.xml @@ -9,6 +9,7 @@ ServiceClientTypes: PORTAL_BACKEND: 1 FILECHOOSER_PORTAL_BACKEND: 2 + GLOBAL_SHORTCUTS_PORTAL_BACKEND: 3 --> diff --git a/src/core/meta-service-channel.c b/src/core/meta-service-channel.c index 8211546b7..e12cb88f4 100644 --- a/src/core/meta-service-channel.c +++ b/src/core/meta-service-channel.c @@ -99,6 +99,7 @@ verify_service_client_type (uint32_t service_client_type) return FALSE; case META_SERVICE_CLIENT_TYPE_PORTAL_BACKEND: case META_SERVICE_CLIENT_TYPE_FILECHOOSER_PORTAL_BACKEND: + case META_SERVICE_CLIENT_TYPE_GLOBAL_SHORTCUTS_PORTAL_BACKEND: return TRUE; } diff --git a/src/core/meta-service-channel.h b/src/core/meta-service-channel.h index cee31add3..cb51b78a3 100644 --- a/src/core/meta-service-channel.h +++ b/src/core/meta-service-channel.h @@ -31,6 +31,7 @@ typedef enum _MetaServiceClientType META_SERVICE_CLIENT_TYPE_NONE, META_SERVICE_CLIENT_TYPE_PORTAL_BACKEND, META_SERVICE_CLIENT_TYPE_FILECHOOSER_PORTAL_BACKEND, + META_SERVICE_CLIENT_TYPE_GLOBAL_SHORTCUTS_PORTAL_BACKEND, } MetaServiceClientType; #define META_TYPE_SERVICE_CHANNEL (meta_service_channel_get_type ()) diff --git a/src/wayland/meta-wayland-x11-interop.c b/src/wayland/meta-wayland-x11-interop.c index cd91c6f66..312a63fd0 100644 --- a/src/wayland/meta-wayland-x11-interop.c +++ b/src/wayland/meta-wayland-x11-interop.c @@ -99,6 +99,7 @@ x11_interop_filter (const struct wl_client *client, MetaServiceClientType allowed_client_types[] = { META_SERVICE_CLIENT_TYPE_PORTAL_BACKEND, META_SERVICE_CLIENT_TYPE_FILECHOOSER_PORTAL_BACKEND, + META_SERVICE_CLIENT_TYPE_GLOBAL_SHORTCUTS_PORTAL_BACKEND, }; size_t i;