From 619b0232b583506cc6e42a6f073dd3d8d3354a7e Mon Sep 17 00:00:00 2001 From: Richard Acayan Date: Sun, 4 Aug 2024 22:02:16 -0400 Subject: [PATCH] wayland: update support for text insertion according to input method --- src/wayland/dispatcher.rs | 2 ++ src/wayland/seat.rs | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/src/wayland/dispatcher.rs b/src/wayland/dispatcher.rs index f2916d2..83b603c 100644 --- a/src/wayland/dispatcher.rs +++ b/src/wayland/dispatcher.rs @@ -442,9 +442,11 @@ impl Dispatch 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 { .. } => (), diff --git a/src/wayland/seat.rs b/src/wayland/seat.rs index 327e2c4..ca31954 100644 --- a/src/wayland/seat.rs +++ b/src/wayland/seat.rs @@ -109,6 +109,12 @@ impl