layer-shell: introduce wlr_layer_surface_v1_get_exclusive_edge()

This commit is contained in:
Kirill Primak 2024-06-11 16:16:31 +03:00 committed by Alexander Orzechowski
parent 270e6f4ebb
commit a0450d219f
2 changed files with 38 additions and 0 deletions

View file

@ -13,6 +13,7 @@
#include <stdint.h>
#include <wayland-server-core.h>
#include <wlr/types/wlr_compositor.h>
#include <wlr/util/edges.h>
#include "wlr-layer-shell-unstable-v1-protocol.h"
/**
@ -187,4 +188,11 @@ struct wlr_surface *wlr_layer_surface_v1_popup_surface_at(
struct wlr_layer_surface_v1 *wlr_layer_surface_v1_from_resource(
struct wl_resource *resource);
/**
* Get the edge the exclusive zone must be applied to.
*
* Returns WLR_EDGE_NONE if the exclusive zone is nonpositive or must not be applied.
*/
enum wlr_edges wlr_layer_surface_v1_get_exclusive_edge(struct wlr_layer_surface_v1 *surface);
#endif