System bell protocol
此全局接口允许客户端触发系统铃声。
警告!此文件中描述的协议目前处于测试阶段。可能会添加向后兼容的更改,并更新相应的接口版本。向后不兼容的更改只能通过创建新的扩展主版本来完成。
ring(surface: object<wl_surface>)
参数 | 类型 | 描述 |
|---|---|---|
| surface | object<wl_surface>允许为空 | associated surface |
此请求代表客户端触发系统铃声。铃声的具体实现方式由合成器决定,可以是声音、某种视觉反馈、或其他任何形式,也可以什么都不做。
传入的 surface 应具有类似 toplevel 的 surface 角色,或为 null,表示客户端没有要关联铃声触发的特定 toplevel。请参阅 xdg-shell 协议扩展了解 toplevel 类似的 surface 角色。
合成器支持
Cage | COSMIC | GameScope | Hyprland | Jay | KWin | Labwc | Louvre | Mir | Muffin | Mutter | niri | phoc | river | Sway | Treeland | Wayfire | Weston | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| xdg_system_bell_v1 | x | x | x | 1 | x | 1 | x | x | x | x | 1 | x | x | x | x | x | x | x |
Copyright
Copyright © 2016, 2023 Red Hat
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.