somebar/protocols/net-tapesoftware-dwl-wm-unstable-v1.xml

166 lines
7.4 KiB
XML
Raw Normal View History

2021-10-22 16:32:58 +00:00
<?xml version="1.0" encoding="UTF-8"?>
<protocol name="net_tapesoftware_dwl_wm_unstable_v1">
<copyright>
Copyright © 2021 Raphael Robatsch
Permission to use, copy, modify, distribute, and sell this
software and its documentation for any purpose is hereby granted
without fee, provided that the above copyright notice appear in
all copies and that both that copyright notice and this permission
notice appear in supporting documentation, and that the name of
the copyright holders not be used in advertising or publicity
pertaining to distribution of the software without specific,
written prior permission. The copyright holders make no
representations about the suitability of this software for any
purpose. It is provided "as is" without express or implied
warranty.
THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
FITNESS, IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY
SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
THIS SOFTWARE.
</copyright>
<interface name="znet_tapesoftware_dwl_wm_v1" version="1">
<description summary="control the dwl state">
2021-10-26 16:39:05 +00:00
This interface is exposed as a global in the wl_registry.
Clients can use this protocol to receive updates of the window manager
2021-10-22 16:32:58 +00:00
state (active tags, active layout, and focused window).
Clients can also control this state.
2021-10-26 16:39:05 +00:00
After binding, the client will receive the available tags and layouts
with the 'tag' and 'layout' events. These can be used in subsequent
dwl_wm_monitor_v1.set_tags/set_layout requests, and to interpret the
dwl_wm_monitor_v1.layout/tag events.
2021-10-22 16:32:58 +00:00
</description>
<request name="release" type="destructor">
<description summary="release dwl_wm">
2021-10-26 16:39:05 +00:00
This request indicates that the client will not use the dwl_wm
object any more. Objects that have been created through this instance
are not affected.
2021-10-22 16:32:58 +00:00
</description>
</request>
2021-10-25 13:49:01 +00:00
<request name="get_monitor">
<description summary="gets a dwl monitor from an output">
2021-10-26 16:39:05 +00:00
Gets a dwl monitor for the specified output. The window manager
state on the output can be controlled using the monitor.
2021-10-25 13:49:01 +00:00
</description>
<arg name="id" type="new_id" interface="znet_tapesoftware_dwl_wm_monitor_v1" />
<arg name="output" type="object" interface="wl_output" />
</request>
2021-10-22 16:32:58 +00:00
<event name="tag">
<description summary="announces the presence of a tag">
2021-10-26 16:39:05 +00:00
This event is sent immediately after binding.
A roundtrip after binding guarantees that the client has received all tags.
2021-10-22 16:32:58 +00:00
</description>
<arg name="name" type="string"/>
</event>
2021-10-25 19:54:14 +00:00
<event name="layout">
<description summary="announces the presence of a layout">
2021-10-26 16:39:05 +00:00
This event is sent immediately after binding.
A roundtrip after binding guarantees that the client has received all layouts.
2021-10-25 19:54:14 +00:00
</description>
<arg name="name" type="string"/>
</event>
2021-10-22 16:32:58 +00:00
</interface>
2021-10-25 13:49:01 +00:00
<interface name="znet_tapesoftware_dwl_wm_monitor_v1" version="1">
<description summary="control one monitor">
2021-10-26 16:39:05 +00:00
Observes and controls one monitor.
Events are double-buffered: Clients should cache all events and only
redraw themselves once the 'frame' event is sent.
Requests are not double-buffered: The compositor will update itself
immediately.
2021-10-25 13:49:01 +00:00
</description>
2021-10-25 18:52:21 +00:00
<enum name="tag_state">
2021-10-26 16:39:05 +00:00
<entry name="none" value="0" summary="no state"/>
<entry name="active" value="1" summary="tag is active"/>
<entry name="urgent" value="2" summary="tag has at least one urgent client"/>
2021-10-25 18:52:21 +00:00
</enum>
2021-10-25 13:49:01 +00:00
<request name="release" type="destructor">
<description summary="release dwl_monitor">
2021-10-26 16:39:05 +00:00
This request indicates that the client is done with this dwl_monitor.
All further requests are ignored.
2021-10-25 13:49:01 +00:00
</description>
</request>
2021-10-25 19:54:14 +00:00
<event name="selected">
<description summary="updates the selected state of the monitor">
2021-10-26 16:39:05 +00:00
If 'selected' is nonzero, this monitor is the currently selected one.
2021-10-25 19:54:14 +00:00
</description>
2021-10-26 09:40:46 +00:00
<arg name="selected" type="uint"/>
2021-10-25 19:54:14 +00:00
</event>
2021-10-25 13:49:01 +00:00
<event name="tag">
2021-10-25 19:54:14 +00:00
<description summary="updates the state of one tag">
2021-10-26 16:39:05 +00:00
Announces the update of a tag. num_clients and focused_client can be
used to draw client indicators.
2021-10-25 13:49:01 +00:00
</description>
2021-10-26 16:39:05 +00:00
<arg name="tag" type="uint" summary="index of a tag received by the dwl_wm_v1.tag event." />
2021-10-25 18:52:21 +00:00
<arg name="state" type="uint" enum="tag_state"/>
2021-10-26 16:39:05 +00:00
<arg name="num_clients" type="uint" summary="number of clients on this tag"/>
<arg name="focused_client" type="int" summary="out of num_clients. -1 if there is no focused client"/>
2021-10-25 17:02:35 +00:00
</event>
2021-10-25 19:54:14 +00:00
<event name="layout">
<description summary="updates the selected layout">
2021-10-26 16:39:05 +00:00
Announces the update of the selected layout.
2021-10-25 19:54:14 +00:00
</description>
2021-10-26 16:39:05 +00:00
<arg name="layout" type="uint" summary="index of a layout received by the dwl_wm_v1.layout event."/>
2021-10-25 19:54:14 +00:00
</event>
<event name="title">
<description summary="updates the focused client">
2021-10-26 16:39:05 +00:00
Announces the update of the selected client.
2021-10-25 19:54:14 +00:00
</description>
<arg name="title" type="string"/>
</event>
2021-10-25 17:02:35 +00:00
<event name="frame">
2021-10-26 16:39:05 +00:00
<description summary="end of status update sequence">
Sent after all other events belonging to the status update has been sent.
Clients should redraw themselves now.
2021-10-25 17:02:35 +00:00
</description>
2021-10-25 13:49:01 +00:00
</event>
2021-10-26 09:40:46 +00:00
<request name="set_tags">
2021-10-26 16:39:05 +00:00
<description summary="sets the active tags on this monitor.">
Changes are applied immediately.
2021-10-26 09:40:46 +00:00
</description>
2021-10-26 16:39:05 +00:00
<arg name="tagmask" type="uint" summary="bitmask of the tags that should be set."/>
2021-10-26 09:40:46 +00:00
<arg name="toggle_tagset" type="uint"/>
</request>
2021-10-26 14:17:07 +00:00
<request name="set_client_tags">
2021-10-26 16:39:05 +00:00
<description summary="updates the tags of the focused client.">
2021-10-26 14:17:07 +00:00
tags are updated as follows:
new_tags = (current_tags AND and_tags) XOR xor_tags
2021-10-26 16:39:05 +00:00
Changes are applied immediately.
2021-10-26 14:17:07 +00:00
</description>
<arg name="and_tags" type="uint"/>
<arg name="xor_tags" type="uint"/>
</request>
2021-10-26 09:40:46 +00:00
<request name="set_layout">
2021-10-26 16:39:05 +00:00
<description summary="sets the active layout on this monitor.">
Changes are applied immediately.
2021-10-26 09:40:46 +00:00
</description>
2021-10-26 16:39:05 +00:00
<arg name="layout" type="uint" summary="index of a layout received by the dwl_wm_v1.layout event."/>
2021-10-26 09:40:46 +00:00
</request>
2021-10-25 13:49:01 +00:00
</interface>
2021-10-22 16:32:58 +00:00
</protocol>