wayland: update support for text insertion according to input method

This commit is contained in:
Richard Acayan 2024-08-04 22:02:16 -04:00
parent c459405318
commit 619b0232b5
2 changed files with 8 additions and 0 deletions

View file

@ -442,9 +442,11 @@ impl Dispatch<zwp_input_method_v2::ZwpInputMethodV2, ()> for Dispatcher {
{
match evt {
zwp_input_method_v2::Event::Activate => {
ctx.seat.set_text_supported(true);
ctx.show();
},
zwp_input_method_v2::Event::Deactivate => {
ctx.seat.set_text_supported(false);
ctx.hide();
},
zwp_input_method_v2::Event::TextChangeCause { .. } => (),