1
0
Fork 0
forked from wry/wry

simple-im: add support for unicode input

This commit is contained in:
Julian Orth 2025-10-16 15:46:49 +02:00
parent 9ac4fea594
commit 481e9b3854
13 changed files with 158 additions and 1 deletions

View file

@ -1040,6 +1040,10 @@ impl ConfigClient {
self.send(&ClientMessage::SeatReloadSimpleIm { seat });
}
pub fn seat_enable_unicode_input(&self, seat: Seat) {
self.send(&ClientMessage::SeatEnableUnicodeInput { seat });
}
pub fn set_show_float_pin_icon(&self, show: bool) {
self.send(&ClientMessage::SetShowFloatPinIcon { show });
}

View file

@ -798,6 +798,9 @@ pub enum ClientMessage<'a> {
SeatReloadSimpleIm {
seat: Seat,
},
SeatEnableUnicodeInput {
seat: Seat,
},
}
#[derive(Serialize, Deserialize, Debug)]

View file

@ -631,6 +631,13 @@ impl Seat {
pub fn reload_simple_im(self) {
get!().seat_reload_simple_im(self);
}
/// Enables Unicode input in the simple, XCompose based input method.
///
/// This has no effect if the simple IM is not currently active.
pub fn enable_unicode_input(self) {
get!().seat_enable_unicode_input(self);
}
}
/// A focus-follows-mouse mode.