cage/output.h

39 lines
951 B
C
Raw Permalink Normal View History

#ifndef CG_OUTPUT_H
#define CG_OUTPUT_H
#include <wayland-server-core.h>
#include <wlr/types/wlr_output.h>
2019-01-20 13:42:36 +01:00
#include <wlr/types/wlr_output_damage.h>
#include <wlr/util/box.h>
#include "server.h"
2019-01-20 13:42:36 +01:00
#include "view.h"
2020-02-24 20:06:21 +01:00
/* There exist currently four layers:
* - ZWLR_LAYER_SHELL_V1_LAYER_BACKGROUND
* - ZWLR_LAYER_SHELL_V1_LAYER_BOTTOM
* - ZWLR_LAYER_SHELL_V1_LAYER_TOP
* - ZWLR_LAYER_SHELL_V1_LAYER_OVERLAY
*/
#define NUM_LAYERS 4
struct cg_output {
struct cg_server *server;
struct wlr_output *wlr_output;
struct wlr_scene_output *scene_output;
struct wlr_box usable_area;
struct wl_listener commit;
2019-01-10 15:50:31 +01:00
struct wl_listener mode;
struct wl_listener destroy;
struct wl_listener frame;
2019-12-22 01:01:06 +01:00
struct wl_list link; // cg_server::outputs
2020-02-24 20:06:21 +01:00
struct wl_list layers[NUM_LAYERS]; // cg_layer_surface::link
};
void handle_new_output(struct wl_listener *listener, void *data);
2019-02-16 00:54:04 +01:00
void output_set_window_title(struct cg_output *output, const char *title);
#endif