Add idle inhibitor support

With this, some apps (e.g. mpv) can block the idle tracker from
kicking in. This way, the screen won't blank (or whatever you
configured) when the application doesn't want it to.
This commit is contained in:
Jente Hidskes 2019-01-08 23:24:51 +01:00
parent bf58eadf50
commit 21c01c9ee0
5 changed files with 96 additions and 0 deletions

8
idle_inhibit_v1.h Normal file
View file

@ -0,0 +1,8 @@
#ifndef CG_IDLE_INHIBIT_H
#define CG_IDLE_INHIBIT_H
#include <wayland-server.h>
void handle_idle_inhibitor_v1_new(struct wl_listener *listener, void *data);
#endif