mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-11-22 07:02:28 +00:00
fullscreen-shell: add release request handler
This commit is contained in:
parent
c73e20628a
commit
58067a2084
@ -9,6 +9,11 @@
|
|||||||
|
|
||||||
static const struct zwp_fullscreen_shell_v1_interface shell_impl;
|
static const struct zwp_fullscreen_shell_v1_interface shell_impl;
|
||||||
|
|
||||||
|
static void shell_handle_release(struct wl_client *client,
|
||||||
|
struct wl_resource *resource) {
|
||||||
|
wl_resource_destroy(resource);
|
||||||
|
}
|
||||||
|
|
||||||
static struct wlr_fullscreen_shell_v1 *shell_from_resource(
|
static struct wlr_fullscreen_shell_v1 *shell_from_resource(
|
||||||
struct wl_resource *resource) {
|
struct wl_resource *resource) {
|
||||||
assert(wl_resource_instance_of(resource,
|
assert(wl_resource_instance_of(resource,
|
||||||
@ -58,6 +63,7 @@ static void shell_handle_present_surface_for_mode(struct wl_client *client,
|
|||||||
}
|
}
|
||||||
|
|
||||||
static const struct zwp_fullscreen_shell_v1_interface shell_impl = {
|
static const struct zwp_fullscreen_shell_v1_interface shell_impl = {
|
||||||
|
.release = shell_handle_release,
|
||||||
.present_surface = shell_handle_present_surface,
|
.present_surface = shell_handle_present_surface,
|
||||||
.present_surface_for_mode = shell_handle_present_surface_for_mode,
|
.present_surface_for_mode = shell_handle_present_surface_for_mode,
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user