Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/protocols/TextInputV3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@ CTextInputV3::CTextInputV3(SP<CZwpTextInputV3> resource_) : m_resource(resource_

m_pending.enabled.isEnablePending = false;
m_pending.enabled.isDisablePending = false;

// The serial in done must equal the number of commits, and clients
// hold back pending state (e.g. set_cursor_rectangle) until they
// receive a done with a matching serial. Ack every commit, otherwise
// clients that follow the spec strictly deadlock until the IM happens
// to push state back (updateIMEState).
sendDone();
});

m_resource->setSetSurroundingText([this](CZwpTextInputV3* r, const char* text, int32_t cursor, int32_t anchor) {
Expand Down
Loading