summaryrefslogtreecommitdiff
path: root/core/src/idle-inhibit.h
diff options
context:
space:
mode:
authorkotontrion <[email protected]>2024-09-24 10:47:14 +0200
committerkotontrion <[email protected]>2024-09-24 10:47:14 +0200
commit122112c320e62e52b3f0acc5d03c445c44bd8c4c (patch)
tree5fd80f779b938e767595f5ad37ecf87e7799a717 /core/src/idle-inhibit.h
parentba7d92df104f374a3796c0c95f3a9cda04976f6a (diff)
core: add window inhibit property
Diffstat (limited to 'core/src/idle-inhibit.h')
-rw-r--r--core/src/idle-inhibit.h22
1 files changed, 22 insertions, 0 deletions
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 <glib-object.h>
+#include <gtk/gtk.h>
+#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