summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJuhan <[email protected]>2025-01-12 18:02:50 +0600
committerGitHub <[email protected]>2025-01-12 13:02:50 +0100
commit692de64cf68ef4acf483d12fe8d4ed1a3c49cd4c (patch)
treea571e733df34e996b8b50adb2f92e1019740a9cf /lib
parent487f2746a2a7711b4b0cfda6faa624ab196f3d04 (diff)
chore(hyprland): add 3 missing properties for `Bind` (#234)
Diffstat (limited to 'lib')
-rw-r--r--lib/hyprland/structs.vala6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/hyprland/structs.vala b/lib/hyprland/structs.vala
index 25f70c3..d5180b1 100644
--- a/lib/hyprland/structs.vala
+++ b/lib/hyprland/structs.vala
@@ -4,12 +4,15 @@ public class Bind : Object {
public bool mouse { get; construct set; }
public bool release { get; construct set; }
public bool repeat { get; construct set; }
+ public bool long_press { get; construct set; }
public bool non_consuming { get; construct set; }
+ public bool has_description { get; construct set; }
public int64 modmask { get; construct set; }
public string submap { get; construct set; }
public string key { get; construct set; }
public int64 keycode { get; construct set; }
public bool catch_all { get; construct set; }
+ public string description { get; construct set; }
public string dispatcher { get; construct set; }
public string arg { get; construct set; }
@@ -18,12 +21,15 @@ public class Bind : Object {
mouse = obj.get_boolean_member("mouse");
release = obj.get_boolean_member("release");
repeat = obj.get_boolean_member("repeat");
+ long_press = obj.get_member("longPress")?.get_boolean() ?? false;
non_consuming = obj.get_boolean_member("non_consuming");
+ has_description = obj.get_member("has_description")?.get_boolean() ?? false;
modmask = obj.get_int_member("modmask");
submap = obj.get_string_member("submap");
key = obj.get_string_member("key");
keycode = obj.get_int_member("keycode");
catch_all = obj.get_boolean_member("catch_all");
+ description = obj.get_member("description")?.get_string() ?? "";
dispatcher = obj.get_string_member("dispatcher");
arg = obj.get_string_member("arg");
}