input/ti: avoid sending events to inactive TIs
ref https://github.com/hyprwm/Hyprland/discussions/12105
This commit is contained in:
parent
48a024e032
commit
bd7f9aad05
3 changed files with 10 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue