mirror of
https://github.com/cage-kiosk/cage.git
synced 2025-10-29 05:40:19 -04:00
The documentation for `wayland-server.h` says:
> Use of this header file is discouraged. Prefer including
> wayland-server-core.h instead, which does not include the server protocol
> header and as such only defines the library PI, excluding the deprecated API
> below.
See also
ca45f4490c (diff-b57e10fe0774258a6d21b22077001cff)
30 lines
876 B
C
30 lines
876 B
C
#ifndef CG_OUTPUT_H
|
|
#define CG_OUTPUT_H
|
|
|
|
#include <wayland-server-core.h>
|
|
#include <wlr/types/wlr_output.h>
|
|
#include <wlr/types/wlr_output_damage.h>
|
|
|
|
#include "seat.h"
|
|
#include "server.h"
|
|
#include "view.h"
|
|
|
|
struct cg_output {
|
|
struct cg_server *server;
|
|
struct wlr_output *wlr_output;
|
|
struct wlr_output_damage *damage;
|
|
|
|
struct wl_listener mode;
|
|
struct wl_listener transform;
|
|
struct wl_listener destroy;
|
|
struct wl_listener damage_frame;
|
|
struct wl_listener damage_destroy;
|
|
};
|
|
|
|
void handle_new_output(struct wl_listener *listener, void *data);
|
|
void output_damage_view_surface(struct cg_output *output, struct cg_view *view);
|
|
void output_damage_view_whole(struct cg_output *cg_output, struct cg_view *view);
|
|
void output_damage_drag_icon(struct cg_output *output, struct cg_drag_icon *icon);
|
|
void output_set_window_title(struct cg_output *output, const char *title);
|
|
|
|
#endif
|