aboutsummaryrefslogtreecommitdiff
path: root/protocol/river-window-management-unstable-v1.xml
blob: 1b6b2a0b128719dafef8366df62767726cc2087c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?xml version="1.0" encoding="UTF-8"?>
<protocol name="river_window_management_unstable_v1">
  <copyright>
    Copyright 2020 Isaac Freund

    Permission to use, copy, modify, and/or distribute this software for any
    purpose with or without fee is hereby granted, provided that the above
    copyright notice and this permission notice appear in all copies.

    THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
    WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
    MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
    ANY SPECIAL, DIRECT, 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="zriver_window_manager_v1" version="1">
    <description summary="track windowing state">
      This protocol allows clients to recieve information about the current
      windowing state. It is useful to implement, for example, a status bar
      displaying information specific to the river compositor.
    </description>

    <event name="focus">
      <description summary="sent when a view gains focus">
      </description>
      <arg name="app_id" type="string" summary="the app_id of the view"/>
      <arg name="title" type="string" summary="the title of the view"/>
    </event>

    <event name="output_windowing_state">
      <description summary="signal output windowing state change">
        Sent whenever the windowing state of an output changes. The output_name
        argument is the same as the name returned by the xdg-output protocol.
        Tags are sent as a bitfield, if a view has one of the focused tags set,
        then it is displayed on the output.
      </description>
      <arg name="output_name" type="string" summary="the name of the output"/>
      <arg name="output_tags" type="uint"
        summary="the currently focused tags of the output"/>
      <arg name="view_tags" type="array"
        summary="the current tags of each view on the output"/>
    </event>
  </interface>
</protocol>