Skip to content

Commit

Permalink
Generate code for hyprland protocols
Browse files Browse the repository at this point in the history
  • Loading branch information
morr0ne committed Oct 15, 2024
1 parent 015f8e9 commit 99b22e5
Show file tree
Hide file tree
Showing 6 changed files with 1,470 additions and 1 deletion.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ weston = []
cosmic = ["wlr"]
frog = []
ivi = []
hyprland = []

# Internal features
fuzz = ["dep:arbitrary"]
Expand Down
11 changes: 10 additions & 1 deletion gen/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use waynest_gen::{
parser::{Error, Pair},
};

const PROTOCOLS: [(&str, &[&str]); 10] = [
const PROTOCOLS: [(&str, &[&str]); 11] = [
("core", &["protocols/wayland/protocol/wayland.xml"]),
(
"stable",
Expand Down Expand Up @@ -165,6 +165,15 @@ const PROTOCOLS: [(&str, &[&str]); 10] = [
"protocols/wayland-ivi-extension/protocol/ivi-input.xml",
"protocols/wayland-ivi-extension/protocol/ivi-wm.xml"
],
),
(
"hyprland",
&[
"protocols/hyprland-protocols/protocols/hyprland-ctm-control-v1.xml",
"protocols/hyprland-protocols/protocols/hyprland-focus-grab-v1.xml",
"protocols/hyprland-protocols/protocols/hyprland-global-shortcuts-v1.xml",
"protocols/hyprland-protocols/protocols/hyprland-toplevel-export-v1.xml",
]
)
];

Expand Down
3 changes: 3 additions & 0 deletions src/client/protocol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ pub mod cosmic;
#[cfg(feature = "frog")]
#[cfg_attr(docsrs, doc(cfg(feature = "frog")))]
pub mod frog;
#[cfg(feature = "hyprland")]
#[cfg_attr(docsrs, doc(cfg(feature = "hyprland")))]
pub mod hyprland;
#[cfg(feature = "ivi")]
#[cfg_attr(docsrs, doc(cfg(feature = "ivi")))]
pub mod ivi;
Expand Down
Loading

0 comments on commit 99b22e5

Please sign in to comment.