mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-11-22 07:02:28 +00:00
layer-shell: upgrade to v3, implement destructor
This commit is contained in:
parent
d2ca220fda
commit
45c0877e34
@ -25,7 +25,7 @@
|
|||||||
THIS SOFTWARE.
|
THIS SOFTWARE.
|
||||||
</copyright>
|
</copyright>
|
||||||
|
|
||||||
<interface name="zwlr_layer_shell_v1" version="2">
|
<interface name="zwlr_layer_shell_v1" version="3">
|
||||||
<description summary="create surfaces that are layers of the desktop">
|
<description summary="create surfaces that are layers of the desktop">
|
||||||
Clients can use this interface to assign the surface_layer role to
|
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
|
wl_surfaces. Such surfaces are assigned to a "layer" of the output and
|
||||||
@ -82,9 +82,19 @@
|
|||||||
<entry name="top" value="2"/>
|
<entry name="top" value="2"/>
|
||||||
<entry name="overlay" value="3"/>
|
<entry name="overlay" value="3"/>
|
||||||
</enum>
|
</enum>
|
||||||
|
|
||||||
|
<!-- Version 3 additions -->
|
||||||
|
|
||||||
|
<request name="destroy" type="destructor" since="3">
|
||||||
|
<description summary="destroy the layer_shell object">
|
||||||
|
This request indicates that the client will not use the layer_shell
|
||||||
|
object any more. Objects that have been created through this instance
|
||||||
|
are not affected.
|
||||||
|
</description>
|
||||||
|
</request>
|
||||||
</interface>
|
</interface>
|
||||||
|
|
||||||
<interface name="zwlr_layer_surface_v1" version="2">
|
<interface name="zwlr_layer_surface_v1" version="3">
|
||||||
<description summary="layer metadata interface">
|
<description summary="layer metadata interface">
|
||||||
An interface that may be implemented by a wl_surface, for surfaces that
|
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
|
are designed to be rendered as a layer of a stacked desktop-like
|
||||||
@ -295,7 +305,7 @@
|
|||||||
|
|
||||||
Layer is double-buffered, see wl_surface.commit.
|
Layer is double-buffered, see wl_surface.commit.
|
||||||
</description>
|
</description>
|
||||||
<arg name="layer" type="uint" enum="layer" summary="layer to move this surface to"/>
|
<arg name="layer" type="uint" enum="zwlr_layer_shell_v1.layer" summary="layer to move this surface to"/>
|
||||||
</request>
|
</request>
|
||||||
</interface>
|
</interface>
|
||||||
</protocol>
|
</protocol>
|
||||||
|
@ -445,6 +445,7 @@ static void layer_shell_handle_get_layer_surface(struct wl_client *wl_client,
|
|||||||
|
|
||||||
static const struct zwlr_layer_shell_v1_interface layer_shell_implementation = {
|
static const struct zwlr_layer_shell_v1_interface layer_shell_implementation = {
|
||||||
.get_layer_surface = layer_shell_handle_get_layer_surface,
|
.get_layer_surface = layer_shell_handle_get_layer_surface,
|
||||||
|
.destroy = resource_handle_destroy,
|
||||||
};
|
};
|
||||||
|
|
||||||
static void layer_shell_bind(struct wl_client *wl_client, void *data,
|
static void layer_shell_bind(struct wl_client *wl_client, void *data,
|
||||||
|
Loading…
Reference in New Issue
Block a user