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
|
|
@ -75,6 +75,11 @@ CTextInput* CInputMethodRelay::getFocusedTextInput() {
|
|||
if (!Desktop::focusState()->surface())
|
||||
return nullptr;
|
||||
|
||||
for (auto const& ti : m_textInputs) {
|
||||
if (ti->focusedSurface() == Desktop::focusState()->surface() && ti->isEnabled())
|
||||
return ti.get();
|
||||
}
|
||||
|
||||
for (auto const& ti : m_textInputs) {
|
||||
if (ti->focusedSurface() == Desktop::focusState()->surface())
|
||||
return ti.get();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue