diff options
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 827d4dbe..c42d4f1f 100644 --- a/src/managers/input/TextInput.cpp +++ b/src/managers/input/TextInput.cpp @@ -127,6 +127,8 @@ void CTextInput::setFocusedSurface(wlr_surface* pSurface) { [this](void* owner, void* data) { Debug::log(LOG, "Unmap TI owner1"); + if (enterLocks) + enterLocks--; pFocusedSurface = nullptr; hyprListener_surfaceUnmapped.removeCallback(); hyprListener_surfaceDestroyed.removeCallback(); @@ -138,6 +140,8 @@ void CTextInput::setFocusedSurface(wlr_surface* pSurface) { [this](void* owner, void* data) { Debug::log(LOG, "destroy TI owner1"); + if (enterLocks) + enterLocks--; pFocusedSurface = nullptr; hyprListener_surfaceUnmapped.removeCallback(); hyprListener_surfaceDestroyed.removeCallback(); |
