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.
This commit is contained in:
Jente Hidskes 2019-01-04 17:06:27 +01:00
parent 96372c145f
commit bf58eadf50
3 changed files with 30 additions and 0 deletions

View file

@ -5,6 +5,7 @@
#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>
@ -21,6 +22,7 @@ struct cg_server {
struct wl_list views;
struct cg_seat *seat;
struct wlr_idle *idle;
struct wlr_output_layout *output_layout;
struct cg_output *output;