Skip to content

Commit

Permalink
input-method-next
Browse files Browse the repository at this point in the history
  • Loading branch information
rano-oss committed Dec 14, 2024
1 parent a078c5b commit b5afa74
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@
[submodule "wayland-protocols-plasma/plasma-wayland-protocols"]
path = wayland-protocols-plasma/plasma-wayland-protocols
url = https://github.com/KDE/plasma-wayland-protocols.git
[submodule "wayland-protocols/wayland-protocols"]
path = wayland-protocols/protocols
url = [email protected]:rano/wayland-protocols.git
branch = input-method-next
2 changes: 1 addition & 1 deletion wayland-protocols/protocols
Submodule protocols updated from 9ac1a0 to 93f954
22 changes: 20 additions & 2 deletions wayland-protocols/src/wp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,17 +126,25 @@ pub mod idle_inhibit {
}
}

#[cfg(feature = "unstable")]
pub mod input_method {
//! Input method protocol
/// Unstable version 1
#[cfg(feature = "unstable")]
pub mod zv1 {
wayland_protocol!(
"./protocols/unstable/input-method/input-method-unstable-v1.xml",
[]
);
}
/// Staging version 3
#[cfg(feature = "staging")]
pub mod v3 {
wayland_protocol!(
"./protocols/staging/input-method/input-method-v3.xml",
[crate::wp::text_input::v3, crate::xdg::shell]
);
}
}

#[cfg(feature = "unstable")]
Expand Down Expand Up @@ -441,11 +449,11 @@ pub mod tablet {
}
}

#[cfg(feature = "unstable")]
pub mod text_input {
//! Text input protocol
/// Unstable version 1
#[cfg(feature = "unstable")]
pub mod zv1 {
wayland_protocol!(
"./protocols/unstable/text-input/text-input-unstable-v1.xml",
Expand All @@ -454,12 +462,22 @@ pub mod text_input {
}

/// Unstable version 3
#[cfg(feature = "unstable")]
pub mod zv3 {
wayland_protocol!(
"./protocols/unstable/text-input/text-input-unstable-v3.xml",
[]
);
}

/// Staging version 3.2
#[cfg(feature = "staging")]
pub mod v3 {
wayland_protocol!(
"./protocols/staging/text-input/text-input-v3.xml",
[]
);
}
}

pub mod viewporter {
Expand Down

0 comments on commit b5afa74

Please sign in to comment.