1
0
Fork 0
forked from wry/wry

cli: allow configuring the simple IM

This commit is contained in:
Julian Orth 2025-10-16 13:12:25 +02:00
parent 2f22a61710
commit 9ac4fea594
5 changed files with 78 additions and 2 deletions

View file

@ -79,7 +79,7 @@ impl Global for JayCompositorGlobal {
}
fn version(&self) -> u32 {
21
22
}
fn required_caps(&self) -> ClientCaps {

View file

@ -515,6 +515,30 @@ impl JayInputRequestHandler for JayInput {
Ok(())
})
}
fn set_simple_im_enabled(
&self,
req: SetSimpleImEnabled<'_>,
_slf: &Rc<Self>,
) -> Result<(), Self::Error> {
self.or_error(|| {
let seat = self.seat(req.seat)?;
seat.set_simple_im_enabled(req.enabled != 0);
Ok(())
})
}
fn reload_simple_im(
&self,
req: ReloadSimpleIm<'_>,
_slf: &Rc<Self>,
) -> Result<(), Self::Error> {
self.or_error(|| {
let seat = self.seat(req.seat)?;
seat.reload_simple_im();
Ok(())
})
}
}
object_base! {