aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/managers/input/TextInput.cpp
diff options
context:
space:
mode:
authorVaxry <[email protected]>2024-03-24 15:00:00 +0000
committerVaxry <[email protected]>2024-03-24 15:00:00 +0000
commitacf15e5579a5d2bbbe4a13e87306445e31ea5e4f (patch)
tree59c2ca866ba6e1c64a3903b677ae87bf0d19326d /src/managers/input/TextInput.cpp
parent86dc46ffea2fa72abe1228c1fad1b42d1507e45d (diff)
downloadHyprland-acf15e5579a5d2bbbe4a13e87306445e31ea5e4f.tar.gz
Hyprland-acf15e5579a5d2bbbe4a13e87306445e31ea5e4f.zip
text-input: reset lock counter on surface destroy
fixes #5231
Diffstat (limited to 'src/managers/input/TextInput.cpp')
-rw-r--r--src/managers/input/TextInput.cpp4
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();