mirror of
https://github.com/cage-kiosk/cage.git
synced 2025-10-29 05:40:19 -04:00
wlroots backends no longer change state on their own, and instead send a request_state event. Monitor this event and apply any state we receive.
29 lines
811 B
C
29 lines
811 B
C
#ifndef CG_OUTPUT_H
|
|
#define CG_OUTPUT_H
|
|
|
|
#include <wayland-server-core.h>
|
|
#include <wlr/types/wlr_output.h>
|
|
|
|
#include "server.h"
|
|
#include "view.h"
|
|
|
|
struct cg_output {
|
|
struct cg_server *server;
|
|
struct wlr_output *wlr_output;
|
|
struct wlr_scene_output *scene_output;
|
|
|
|
struct wl_listener commit;
|
|
struct wl_listener request_state;
|
|
struct wl_listener destroy;
|
|
struct wl_listener frame;
|
|
|
|
struct wl_list link; // cg_server::outputs
|
|
};
|
|
|
|
void handle_output_manager_apply(struct wl_listener *listener, void *data);
|
|
void handle_output_manager_test(struct wl_listener *listener, void *data);
|
|
void handle_output_layout_change(struct wl_listener *listener, void *data);
|
|
void handle_new_output(struct wl_listener *listener, void *data);
|
|
void output_set_window_title(struct cg_output *output, const char *title);
|
|
|
|
#endif
|