summaryrefslogtreecommitdiff
path: root/src/protocols/TextInputV3.hpp
diff options
context:
space:
mode:
authorSungyoon Cho <sungyoon@sungyooncho.dev>2024-09-10 22:49:10 +0900
committerGitHub <noreply@github.com>2024-09-10 14:49:10 +0100
commit155d44016d0cb11332c454db73d59030cdbd7b13 (patch)
tree2227b41f972fea70108bf64046c2e012f637d848 /src/protocols/TextInputV3.hpp
parent13f90bb87a697866f1bbbacd1473d04f33ec2aa7 (diff)
textinput: handle IME resetting (#7731)
Diffstat (limited to 'src/protocols/TextInputV3.hpp')
-rw-r--r--src/protocols/TextInputV3.hpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/protocols/TextInputV3.hpp b/src/protocols/TextInputV3.hpp
index 9f6284dc..ba8b75e6 100644
--- a/src/protocols/TextInputV3.hpp
+++ b/src/protocols/TextInputV3.hpp
@@ -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;