From 42c18e4f77ba78ed70efe07f53d282a1ad383412 Mon Sep 17 00:00:00 2001 From: Tarek Ismail Date: Wed, 27 Nov 2024 14:13:06 +0200 Subject: [PATCH] Make `TextInputV1::send_text_change` not require `pending_state` Either we mismanage it, or the client requests resets way too often. Either way, `pending_state` is not technically required for this to work. Should fix the OSK showing but inputs from it not registering in the input field. --- src/server/frontend_wayland/text_input_v1.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/frontend_wayland/text_input_v1.cpp b/src/server/frontend_wayland/text_input_v1.cpp index 4ea099b37d..788f703db4 100644 --- a/src/server/frontend_wayland/text_input_v1.cpp +++ b/src/server/frontend_wayland/text_input_v1.cpp @@ -266,7 +266,7 @@ TextInputV1::~TextInputV1() void TextInputV1::send_text_change(ms::TextInputChange const& change) { auto const client_serial = find_client_serial(change.serial); - if (!pending_state || !current_surface || !client_serial) + if (!current_surface || !client_serial) { // We are no longer enabled, or we don't have a valid serial return;