应用程序菜单 DBus 地址接口

此接口允许客户端将窗口(或 wl_surface)链接到在 DBus 上注册的 com.canonical.dbusmenu 接口。

create(id: new_id<org_kde_kwin_appmenu>, surface: object<wl_surface>)
参数
类型
描述
idnew_id<org_kde_kwin_appmenu>
surfaceobject<wl_surface>
创建应用程序菜单对象
release
类型: destructor起始版本 2
release()
销毁 org_kde_kwin_appmenu_manager 对象

应用程序菜单 DBus 地址接口

应用程序菜单接口所在的 DBus 服务名称和对象路径。在发送此请求之前,该对象应在会话总线上注册。如果不适用,客户端应删除此对象。

set_address(service_name: string, object_path: string)
参数
类型
描述
service_namestring
object_pathstring
初始化或更新应用程序菜单接口的位置

设置或更新服务名称和对象路径。字符串应按照相关 DBus 规范以 Latin-1 格式格式化。

release()
释放应用程序菜单对象

合成器支持

Cage
Cage
0.2.0
COSMIC
COSMIC
1.0.0~beta.8
GameScope
GameScope
3.15.14
Hyprland
Hyprland
0.52.1
Jay
1.12.0
KWin
KWin
6.6
Labwc
Labwc
0.9.2
Louvre
Louvre
2.14.1
Mir
Mir
2.26
Muffin
Muffin
6.6.0
Mutter
Mutter
49.2
niri
niri
25.11
phoc
phoc
0.52
river
river
0.3.13
Sway
Sway
1.11
Treeland
Treeland
0.8.0
Wayfire
Wayfire
0.9.0
Weston
Weston
14.0.2
org_kde_kwin_appmenu_manager
x
x
x
x
x
2
x
x
x
x
x
x
x
x
x
x
x
x

SPDX-FileCopyrightText: 2017 David Edmundson

SPDX-License-Identifier: MIT

Footer

© 2026 Wayland Explorer

本网站与 Wayland 官方项目无任何关联。网站所有内容均根据 Wayland 协议 XML 文件自动生成。

本网站使用的 Visual Studio Code - Codicons 遵循 CC BY 4.0 许可。