Skip to content

Commit

Permalink
Make TextInputV1::send_text_change not require pending_state
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
tarek-y-ismail committed Nov 27, 2024
1 parent 9381476 commit 42c18e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/frontend_wayland/text_input_v1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 42c18e4

Please sign in to comment.