From f620b2f4bafb433e2447f2109ff572664f2eee66 Mon Sep 17 00:00:00 2001 From: 81reap Date: Mon, 6 Apr 2026 23:47:12 -0400 Subject: [PATCH] feat: add gtk and kde appmenu protocols --- protocols/gtk-shell.xml | 89 +++++++++++++++++++++++++++++++++++++++ protocols/kde-appmenu.xml | 51 ++++++++++++++++++++++ protocols/meson.build | 2 + 3 files changed, 142 insertions(+) create mode 100644 protocols/gtk-shell.xml create mode 100644 protocols/kde-appmenu.xml diff --git a/protocols/gtk-shell.xml b/protocols/gtk-shell.xml new file mode 100644 index 00000000..b0bca8ea --- /dev/null +++ b/protocols/gtk-shell.xml @@ -0,0 +1,89 @@ + + + + + + + + + gtk_shell is a protocol extension providing additional features for + clients implementing it. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/protocols/kde-appmenu.xml b/protocols/kde-appmenu.xml new file mode 100644 index 00000000..a9cc4151 --- /dev/null +++ b/protocols/kde-appmenu.xml @@ -0,0 +1,51 @@ + + + + + SPDX-License-Identifier: MIT + ]]> + + + + + + This interface allows a client to link a window (or wl_surface) to an com.canonical.dbusmenu + interface registered on DBus. + + + + + + + + + + + + + The DBus service name and object path where the appmenu interface is present + The object should be registered on the session bus before sending this request. + If not applicable, clients should remove this object. + + + + Set or update the service name and object path. + Strings should be formatted in Latin-1 matching the relevant DBus specifications. + + + + + + + + + diff --git a/protocols/meson.build b/protocols/meson.build index 922a76ed..478c90de 100644 --- a/protocols/meson.build +++ b/protocols/meson.build @@ -24,6 +24,8 @@ wayland_xmls = [ 'dwl-ipc-unstable-v2.xml', 'wlr-layer-shell-unstable-v1.xml', 'wlr-output-power-management-unstable-v1.xml', + 'kde-appmenu.xml', + 'gtk-shell.xml', ] wayland_sources = [ wayland_scanner_code.process(wayland_xmls),