diff --git a/include/wlr/types/wlr_idle_notify_v1.h b/include/wlr/types/wlr_idle_notify_v1.h index 7bc11cb7a..8dea08045 100644 --- a/include/wlr/types/wlr_idle_notify_v1.h +++ b/include/wlr/types/wlr_idle_notify_v1.h @@ -16,7 +16,17 @@ struct wlr_seat; /** * An idle notifier, implementing the ext-idle-notify-v1 protocol. */ -struct wlr_idle_notifier_v1; +struct wlr_idle_notifier_v1 { + struct wl_global *global; + + // private state + + bool inhibited; + struct wl_list notifications; // wlr_idle_notification_v1.link + + struct wl_listener display_destroy; +}; + /** * Create the ext_idle_notifier_v1 global. diff --git a/types/wlr_idle_notify_v1.c b/types/wlr_idle_notify_v1.c index 6283dc6a3..686ddccc5 100644 --- a/types/wlr_idle_notify_v1.c +++ b/types/wlr_idle_notify_v1.c @@ -6,15 +6,6 @@ #define IDLE_NOTIFIER_VERSION 1 -struct wlr_idle_notifier_v1 { - struct wl_global *global; - - bool inhibited; - struct wl_list notifications; // wlr_idle_notification_v1.link - - struct wl_listener display_destroy; -}; - struct wlr_idle_notification_v1 { struct wl_resource *resource; struct wl_list link; // wlr_idle_notifier_v1.notifications