cage/server.h
Jente Hidskes bf58eadf50 Add idle tracking
Note that this does not do much without an idle manager "on the other
side". See, for example, swayidle: https://github.com/swaywm/sway/blob/master/swayidle/swayidle.1.scd

Fixes #7.
2019-01-09 20:05:09 +01:00

36 lines
664 B
C

#ifndef CG_SERVER_H
#define CG_SERVER_H
#include "config.h"
#include <wayland-server.h>
#include <wlr/backend.h>
#include <wlr/types/wlr_idle.h>
#include <wlr/types/wlr_output_layout.h>
#if CAGE_HAS_XWAYLAND
#include <wlr/xwayland.h>
#endif
#include "output.h"
#include "seat.h"
struct cg_server {
struct wl_display *wl_display;
struct wlr_backend *backend;
struct wl_listener new_xdg_shell_surface;
struct wl_list views;
struct cg_seat *seat;
struct wlr_idle *idle;
struct wlr_output_layout *output_layout;
struct cg_output *output;
struct wl_listener new_output;
#if CAGE_HAS_XWAYLAND
struct wl_listener new_xwayland_surface;
#endif
};
#endif