2020-01-15 20:30:37 +00:00
|
|
|
/* Copyright (c), Charlotte Meyer <dev@buffet.sh>
|
|
|
|
*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
|
|
* You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef KIWMI_DESKTOP_LAYER_SHELL_H
|
|
|
|
#define KIWMI_DESKTOP_LAYER_SHELL_H
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
|
|
|
#include <wayland-server.h>
|
2020-01-19 19:45:13 +00:00
|
|
|
#include <wlr/types/wlr_surface.h>
|
2021-12-20 19:07:56 +00:00
|
|
|
#include <wlr/util/box.h>
|
2020-01-15 20:30:37 +00:00
|
|
|
|
2021-12-22 20:46:15 +00:00
|
|
|
#include "desktop/desktop_surface.h"
|
2020-01-15 20:30:37 +00:00
|
|
|
#include "desktop/output.h"
|
|
|
|
|
|
|
|
struct kiwmi_layer {
|
|
|
|
struct wl_list link;
|
2021-12-22 20:46:15 +00:00
|
|
|
struct kiwmi_desktop_surface desktop_surface;
|
|
|
|
|
2020-01-15 20:30:37 +00:00
|
|
|
struct wlr_layer_surface_v1 *layer_surface;
|
2022-04-03 11:59:31 +00:00
|
|
|
uint32_t layer; // enum zwlr_layer_shell_v1_layer
|
2020-01-15 20:30:37 +00:00
|
|
|
|
|
|
|
struct kiwmi_output *output;
|
|
|
|
|
|
|
|
struct wl_listener destroy;
|
|
|
|
struct wl_listener commit;
|
2021-08-14 19:44:20 +00:00
|
|
|
struct wl_listener map;
|
|
|
|
struct wl_listener unmap;
|
2020-01-15 20:30:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
void arrange_layers(struct kiwmi_output *output);
|
|
|
|
|
|
|
|
void layer_shell_new_surface_notify(struct wl_listener *listener, void *data);
|
|
|
|
|
|
|
|
#endif /* KIWMI_DESKTOP_LAYER_SHELL_H */
|