diff options
| author | Leon Henrik Plickat <leonhenrik.plickat@stud.uni-goettingen.de> | 2022-08-14 16:34:18 +0200 |
|---|---|---|
| committer | Isaac Freund <mail@isaacfreund.com> | 2022-08-16 13:40:07 +0200 |
| commit | 844ffce03738d003a149ad9f022005f897194b2e (patch) | |
| tree | 53bf5fd5307d59eae7143b4c7f8e1c4962bc4d20 /protocol | |
| parent | 416fdc8d06c64e8c4a52dd5558e641c396ebf3cd (diff) | |
| download | river-844ffce03738d003a149ad9f022005f897194b2e.tar.gz river-844ffce03738d003a149ad9f022005f897194b2e.tar.xz | |
river-layout: add user_command_tags event
It is not guaranteed that the next layout_demand event after a user_command
event has the same active tags (for example when there are no views visible).
As an example, a user could trigger a user_command while no views are visible,
then switch to a different tag set which has active views. The active tags of
the previous layout_demand may also be different.
Therefore it is impossible to correctly implement a layout generator which has
user commands apply only to the currently active tag set, which is solved by
this patch.
Diffstat (limited to 'protocol')
| -rw-r--r-- | protocol/river-layout-v3.xml | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/protocol/river-layout-v3.xml b/protocol/river-layout-v3.xml index c9822eb..8a1bdce 100644 --- a/protocol/river-layout-v3.xml +++ b/protocol/river-layout-v3.xml @@ -38,7 +38,7 @@ can only be done by creating a new major version of the extension. </description> - <interface name="river_layout_manager_v3" version="1"> + <interface name="river_layout_manager_v3" version="2"> <description summary="manage river layout objects"> A global factory for river_layout_v3 objects. </description> @@ -71,7 +71,7 @@ </request> </interface> - <interface name="river_layout_v3" version="1"> + <interface name="river_layout_v3" version="2"> <description summary="receive and respond to layout demands"> This interface allows clients to receive layout demands from the compositor for a specific output and subsequently propose positions and @@ -174,8 +174,23 @@ A layout_demand will be sent after this event if the compositor is currently using this layout object to arrange the output. + + If version 2 or higher of the river_layout_v3 object is bound, the + user_command_tags event is guaranteed to be sent directly before the + user_command event. </description> <arg name="command" type="string"/> </event> + + <event name="user_command_tags" since="2"> + <description summary="a command sent by the user"> + If version 2 or higher of the river_layout_v3 object is bound, this + event will be sent directly before every user_command event. This allows + layout generators to be aware of the active tags when a user command is + sent. This is necessary for generators wanting to keep settings on a + per-tag basis. + </description> + <arg name="tags" type="uint" summary="tags of the output, 32-bit bitfield"/> + </event> </interface> </protocol> |
