Documentation for <wlr/types/wlr_idle_notify_v1.h>

Back to index

Table of contents

struct wlr_idle_notifier_v1

struct wlr_idle_notifier_v1;

An idle notifier, implementing the ext-idle-notify-v1 protocol.


struct wlr_idle_notifier_v1 *wlr_idle_notifier_v1_create(​struct wl_display *display);

Create the ext_idle_notifier_v1 global.


void wlr_idle_notifier_v1_notify_activity(​struct wlr_idle_notifier_v1 *notifier, struct wlr_seat *seat);

Notify for user activity on a seat.

Compositors should call this function whenever an input event is triggered on a seat.


void wlr_idle_notifier_v1_set_inhibited(​struct wlr_idle_notifier_v1 *notifier, bool inhibited);

Inhibit idle.

Compositors should call this function when the idle state is disabled, e.g. because a visible client is using the idle-inhibit protocol.