textinput: handle IME resetting (#7731)

This commit is contained in:
Sungyoon Cho 2024-09-10 22:49:10 +09:00 committed by GitHub
parent 13f90bb87a
commit 155d44016d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 49 additions and 19 deletions

View file

@ -31,6 +31,7 @@ class CTextInputV3 {
CSignal onCommit;
CSignal enable;
CSignal disable;
CSignal reset;
CSignal destroy;
} events;
@ -53,7 +54,11 @@ class CTextInputV3 {
CBox cursorBox;
} box;
bool enabled = false;
struct {
bool isEnablePending = false;
bool isDisablePending = false;
bool value = false;
} enabled;
zwpTextInputV3ChangeCause cause = ZWP_TEXT_INPUT_V3_CHANGE_CAUSE_INPUT_METHOD;