wl-mitm/proto/treeland-shortcut-manager-v1.xml
Peter Cai 76f4ae4a73 Include all known protocols from wayland-explorer
Also adjust the build scripts so that we don't just export one big Rust
file...
2025-03-02 18:19:23 -05:00

53 lines
2.3 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<protocol name="treeland_shortcut_manager_v1">
<copyright><![CDATA[
SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd.
SPDX-License-Identifier: MIT
]]></copyright>
<interface name="treeland_shortcut_manager_v1" version="1">
<description summary="shortcut manager">
This interface allows a client to get some shell's info.
Warning! The protocol described in this file is currently in the testing
phase. Backward compatible changes may be added together with the
corresponding interface version bump. Backward incompatible changes can
only be done by creating a new major version of the extension.
</description>
<request name="register_shortcut_context">
<description summary="register shortcut key">
The format of the shortcut key is 'Modify+Key', such as 'Ctrl+Alt+T'.
If the format is wrong, the synthesizer will give a "format error". If the shortcut
key is already registered,
the compositor will give a "register error" and issue a destruction to the context.
</description>
<arg name="key" type="string" />
<arg name="id" type="new_id" interface="treeland_shortcut_context_v1" />
</request>
</interface>
<interface name="treeland_shortcut_context_v1" version="1">
<description summary="client shortcut context">
This interface allows a client to listen a shortcut action.
Warning! The protocol described in this file is currently in the testing
phase. Backward compatible changes may be added together with the
corresponding interface version bump. Backward incompatible changes can
only be done by creating a new major version of the extension.
</description>
<enum name="error">
<entry name="register_failed" value="1"
summary="shortcut register failed" />
</enum>
<event name="shortcut">
</event>
<request name="destroy" type="destructor">
<description summary="destroy the context object">
Destroy the context object.
</description>
</request>
</interface>
</protocol>