From 122112c320e62e52b3f0acc5d03c445c44bd8c4c Mon Sep 17 00:00:00 2001 From: kotontrion Date: Tue, 24 Sep 2024 10:47:14 +0200 Subject: core: add window inhibit property --- core/src/idle-inhibit.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 core/src/idle-inhibit.h (limited to 'core/src/idle-inhibit.h') diff --git a/core/src/idle-inhibit.h b/core/src/idle-inhibit.h new file mode 100644 index 0000000..a342f52 --- /dev/null +++ b/core/src/idle-inhibit.h @@ -0,0 +1,22 @@ +#ifndef ASTAL_IDLE_INHIBITOR_H +#define ASTAL_IDLE_INHIBITOR_H + +#include +#include +#include "idle-inhibit-unstable-v1-client.h" + +G_BEGIN_DECLS + +#define ASTAL_TYPE_INHIBIT_MANAGER (astal_inhibit_manager_get_type()) + +G_DECLARE_FINAL_TYPE(AstalInhibitManager, astal_inhibit_manager, ASTAL, INHIBIT_MANAGER, GObject) + +typedef struct zwp_idle_inhibitor_v1 AstalInhibitor; +void astal_inhibitor_free(AstalInhibitor* inhibitor); + +AstalInhibitManager* astal_inhibit_manager_get_default(); +AstalInhibitor* astal_inhibit_manager_inhibit(AstalInhibitManager *self, GtkWindow *window); + +G_END_DECLS + +#endif // !ASTAL_IDLE_INHIBITOR_H -- cgit v1.2.3