cage/serverng.h

29 lines
587 B
C
Raw Permalink Normal View History

2020-06-30 20:38:44 +02:00
#ifndef CG_SERVER_H
#define CG_SERVER_H
#include <wayland-server-core.h>
#include <wlr/types/wlr_output_layout.h>
#include "desktop/output.h"
2020-07-08 21:43:20 +02:00
#include "input/seat.h"
2020-06-30 20:38:44 +02:00
struct cg_server {
struct wl_display *wl_display;
2020-07-08 21:43:20 +02:00
struct cg_seat *seat;
struct wl_listener new_input;
2020-07-06 22:48:56 +02:00
struct wl_listener cursor_motion;
2020-07-08 21:43:20 +02:00
2020-06-30 20:38:44 +02:00
/* Includes disabled outputs. */
struct wl_list outputs; // cg_output::link
struct wlr_output_layout *output_layout;
struct wl_listener new_output;
2020-07-06 23:55:44 +02:00
struct wl_listener new_xdg_shell_surface;
struct wl_listener view_mapped;
struct wl_listener view_unmapped;
2020-06-30 20:38:44 +02:00
};
#endif