diff options
author | Aylur <[email protected]> | 2024-09-27 23:41:42 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2024-09-27 23:41:42 +0200 |
commit | ac5f7d23ada3eccddc5411341a616b683d361270 (patch) | |
tree | 19f9c017ed1aebf77d5367002f265cb5f863d6b2 /core/src/vapi/AstalInhibitManager.vapi | |
parent | c68d116e409c734f3b875cf94b3fe10690e0f9ce (diff) | |
parent | d035a539fbcc2dfa0dc03f11d3465bae650caf37 (diff) |
Merge pull request #18 from Aylur/feat/idle-inhibitor
add idle inhibitor
Diffstat (limited to 'core/src/vapi/AstalInhibitManager.vapi')
-rw-r--r-- | core/src/vapi/AstalInhibitManager.vapi | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/core/src/vapi/AstalInhibitManager.vapi b/core/src/vapi/AstalInhibitManager.vapi new file mode 100644 index 0000000..6232a3c --- /dev/null +++ b/core/src/vapi/AstalInhibitManager.vapi @@ -0,0 +1,13 @@ +[CCode (cprefix = "Astal", gir_namespace = "Astal", lower_case_cprefix = "astal_")] +namespace Astal { + [CCode (cheader_filename = "idle-inhibit.h", type_id = "astal_idle_inhibit_manager_get_type()")] + public class InhibitManager : GLib.Object { + public static unowned InhibitManager? get_default(); + public Inhibitor inhibit (Gtk.Window window); + } + + [CCode (cheader_filename = "idle-inhibit.h", free_function = "zwp_idle_inhibitor_v1_destroy")] + [Compact] + public class Inhibitor { + } +} |