Skip to content

Commit

Permalink
layer_shell: set layer of existing surface
Browse files Browse the repository at this point in the history
  • Loading branch information
Timidger authored and emersion committed Oct 16, 2019
1 parent 59497d9 commit 98efe0b
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions unstable/wlr-layer-shell-unstable-v1.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
THIS SOFTWARE.
</copyright>

<interface name="zwlr_layer_shell_v1" version="1">
<interface name="zwlr_layer_shell_v1" version="2">
<description summary="create surfaces that are layers of the desktop">
Clients can use this interface to assign the surface_layer role to
wl_surfaces. Such surfaces are assigned to a "layer" of the output and
Expand Down Expand Up @@ -84,15 +84,15 @@
</enum>
</interface>

<interface name="zwlr_layer_surface_v1" version="1">
<interface name="zwlr_layer_surface_v1" version="2">
<description summary="layer metadata interface">
An interface that may be implemented by a wl_surface, for surfaces that
are designed to be rendered as a layer of a stacked desktop-like
environment.

Layer surface state (size, anchor, exclusive zone, margin, interactivity)
is double-buffered, and will be applied at the time wl_surface.commit of
the corresponding wl_surface is called.
Layer surface state (layer, size, anchor, exclusive zone,
margin, interactivity) is double-buffered, and will be applied at the
time wl_surface.commit of the corresponding wl_surface is called.
</description>

<request name="set_size">
Expand Down Expand Up @@ -286,5 +286,16 @@
<entry name="left" value="4" summary="the left edge of the anchor rectangle"/>
<entry name="right" value="8" summary="the right edge of the anchor rectangle"/>
</enum>

<!-- Version 2 additions -->

<request name="set_layer" since="2">
<description summary="change the layer of the surface">
Change the layer that the surface is rendered on.

Layer is double-buffered, see wl_surface.commit.
</description>
<arg name="layer" type="uint" enum="layer" summary="layer to move this surface to"/>
</request>
</interface>
</protocol>

0 comments on commit 98efe0b

Please sign in to comment.