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();