KDE plasma virtual desktop
get_virtual_desktop(id: new_id<org_kde_plasma_virtual_desktop>, desktop_id: string)
参数 | 类型 | 描述 |
|---|---|---|
| id | new_id<org_kde_plasma_virtual_desktop> | |
| desktop_id | string | Unique id of the desktop |
给定特定虚拟桌面的 id,获取仅表示具有该 id 的桌面的相应 org_kde_plasma_virtual_desktop。
警告!此文件中描述的协议是桌面环境的实现细节。普通客户端不得使用此协议。可能会添加向后不兼容的更改,而无需增加扩展的主版本号。
参数 | 类型 | 描述 |
|---|---|---|
| name | string | The user readable name we want for the desktop |
| position | uint | The position we want for the desktop |
请求服务器创建一个新的虚拟桌面,并将其放置在指定位置。如果位置为零或更小,它将被放置在开头;如果位置等于或大于总数,它将被放置在末尾。
request_remove_virtual_desktop(desktop_id: string)
参数 | 类型 | 描述 |
|---|---|---|
| desktop_id | string | Unique id of the desktop |
请求服务器删除一个虚拟桌面,服务器可以同意或拒绝该请求。
desktop_created(desktop_id: string, position: uint)
参数 | 类型 | 描述 |
|---|---|---|
| desktop_id | string | Unique id of the desktop |
| position | uint | Position of this desktop, to ensure the client and the server will see desktops in the same order |
done()
在绑定到桌面管理器全局对象后发送所有其他属性后,以及在 org_kde_plasma_virtual_desktop_management 和 org_kde_plasma_virtual_desktop 属性的所有更改发送后,发送此事件。
这允许将 org_kde_plasma_virtual_desktop_management 和 org_kde_plasma_virtual_desktop 属性的更改视为原子操作,即使它们通过多个事件发生。
request_activate()
请求服务器将此桌面的状态设置为活动状态:服务器可以同意或拒绝该请求。这将成为系统的新"当前"虚拟桌面。
desktop_id(desktop_id: string)
参数 | 类型 | 描述 |
|---|---|---|
| desktop_id | string | Unique id of the desktop |
id 的格式由 compositor 实现决定。桌面 id 唯一标识一个虚拟桌面,并保证永远不会存在两个具有相同 id 的桌面。字符串 id 的格式取决于服务器实现。
activated()
该桌面将成为系统的新"当前"桌面。服务器可以支持一次只有一个虚拟桌面处于活动状态,或其他组合,例如每个屏幕一个虚拟桌面处于活动状态。 与此虚拟桌面关联的窗口将被显示。
done()
在绑定到桌面对象后发送所有其他属性后,以及在此之后完成的任何其他属性更改后,发送此事件。这允许将 org_kde_plasma_virtual_desktop 属性的更改视为原子操作,即使它们通过多个事件发生。
合成器支持
Cage | COSMIC | GameScope | Hyprland | Jay | KWin | Labwc | Louvre | Mir | Muffin | Mutter | niri | phoc | river | Sway | Treeland | Wayfire | Weston | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| org_kde_plasma_virtual_desktop_management | x | x | x | x | x | 3 | x | x | x | x | x | x | x | x | x | x | x | x |