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 From 0922ff6a5bec16bea77923576e4ab241fcf23de0 Mon Sep 17 00:00:00 2001 From: kotontrion Date: Tue, 24 Sep 2024 11:02:45 +0200 Subject: core: inhibitor remove debug statement --- core/src/idle-inhibit.h | 1 - 1 file changed, 1 deletion(-) (limited to 'core/src/idle-inhibit.h') diff --git a/core/src/idle-inhibit.h b/core/src/idle-inhibit.h index a342f52..a33fd69 100644 --- a/core/src/idle-inhibit.h +++ b/core/src/idle-inhibit.h @@ -12,7 +12,6 @@ G_BEGIN_DECLS 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); -- cgit v1.2.3 From 6916d59373948c8bc23cbb198795fe4608a73ba3 Mon Sep 17 00:00:00 2001 From: kotontrion Date: Fri, 27 Sep 2024 08:47:32 +0200 Subject: core: idle inhibitor fix code style --- core/src/idle-inhibit.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core/src/idle-inhibit.h') diff --git a/core/src/idle-inhibit.h b/core/src/idle-inhibit.h index a33fd69..5e9a3ab 100644 --- a/core/src/idle-inhibit.h +++ b/core/src/idle-inhibit.h @@ -3,6 +3,7 @@ #include #include + #include "idle-inhibit-unstable-v1-client.h" G_BEGIN_DECLS @@ -14,7 +15,7 @@ G_DECLARE_FINAL_TYPE(AstalInhibitManager, astal_inhibit_manager, ASTAL, INHIBIT_ typedef struct zwp_idle_inhibitor_v1 AstalInhibitor; AstalInhibitManager* astal_inhibit_manager_get_default(); -AstalInhibitor* astal_inhibit_manager_inhibit(AstalInhibitManager *self, GtkWindow *window); +AstalInhibitor* astal_inhibit_manager_inhibit(AstalInhibitManager* self, GtkWindow* window); G_END_DECLS -- cgit v1.2.3