diff options
| author | Vaxry <vaxry@vaxry.net> | 2026-01-01 14:48:32 +0100 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2026-01-01 14:48:32 +0100 |
| commit | bd7f9aad053866d5ca07195a79c1c7a1b060a8c1 (patch) | |
| tree | be43edc4d9b4b59f253979487d235649f3a7888a /src/managers/input/TextInput.cpp | |
| parent | 48a024e0322bbd7c4c88126498ec478444ec4cb2 (diff) | |
input/ti: avoid sending events to inactive TIs
ref https://github.com/hyprwm/Hyprland/discussions/12105
Diffstat (limited to 'src/managers/input/TextInput.cpp')
| -rw-r--r-- | src/managers/input/TextInput.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/managers/input/TextInput.cpp b/src/managers/input/TextInput.cpp index 4475b5ee..40420129 100644 --- a/src/managers/input/TextInput.cpp +++ b/src/managers/input/TextInput.cpp @@ -305,3 +305,7 @@ bool CTextInput::hasCursorRectangle() { CBox CTextInput::cursorBox() { return CBox{isV3() ? m_v3Input->m_current.box.cursorBox : m_v1Input->m_cursorRectangle}; } + +bool CTextInput::isEnabled() { + return isV3() ? m_v3Input->m_current.enabled.value : true; +} |
