sway-patched-tray-menu-github/include/sway/layers.h

45 lines
1,022 B
C
Raw Permalink Normal View History

2018-03-28 21:47:22 +02:00
#ifndef _SWAY_LAYERS_H
#define _SWAY_LAYERS_H
#include <stdbool.h>
#include <wlr/types/wlr_compositor.h>
2018-09-14 19:21:44 +02:00
#include <wlr/types/wlr_layer_shell_v1.h>
#include "sway/tree/view.h"
2018-03-28 21:47:22 +02:00
struct sway_layer_surface {
struct wl_listener map;
struct wl_listener unmap;
struct wl_listener surface_commit;
struct wl_listener output_destroy;
2024-01-18 16:04:51 +01:00
struct wl_listener node_destroy;
2019-07-05 20:45:11 +02:00
struct wl_listener new_popup;
2018-03-28 21:47:22 +02:00
bool mapped;
struct wlr_scene_tree *popups;
struct sway_popup_desc desc;
2024-01-18 16:04:51 +01:00
struct sway_output *output;
struct wlr_scene_layer_surface_v1 *scene;
struct wlr_scene_tree *tree;
struct wlr_layer_surface_v1 *layer_surface;
2018-03-28 21:47:22 +02:00
};
2019-07-05 20:45:11 +02:00
struct sway_layer_popup {
struct wlr_xdg_popup *wlr_popup;
2024-01-18 16:04:51 +01:00
struct wlr_scene_tree *scene;
struct sway_layer_surface *toplevel;
struct wl_listener destroy;
2024-01-18 16:04:51 +01:00
struct wl_listener new_popup;
struct wl_listener commit;
};
struct sway_output;
struct wlr_layer_surface_v1 *toplevel_layer_surface_from_surface(
struct wlr_surface *surface);
void arrange_layers(struct sway_output *output);
2018-03-28 21:47:22 +02:00
#endif