summaryrefslogtreecommitdiff
path: root/src/helpers/WLClasses.cpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2024-03-22 23:08:52 +0000
committerVaxry <vaxry@vaxry.net>2024-03-22 23:08:52 +0000
commit9f2ed02f35232f0362db45d5f580025f5724500a (patch)
tree5ae8bc60816353d04ca25c8a58affe63d09efc53 /src/helpers/WLClasses.cpp
parent8c88689faf691a4369528e6d3d52c024cd61125d (diff)
IME/TI: Fixes and refactoring
Fixes #5189
Diffstat (limited to 'src/helpers/WLClasses.cpp')
-rw-r--r--src/helpers/WLClasses.cpp36
1 files changed, 0 insertions, 36 deletions
diff --git a/src/helpers/WLClasses.cpp b/src/helpers/WLClasses.cpp
index 1c14567d..d46f7e40 100644
--- a/src/helpers/WLClasses.cpp
+++ b/src/helpers/WLClasses.cpp
@@ -244,39 +244,3 @@ void SKeyboard::updateXKBTranslationState(xkb_keymap* const keymap) {
xkb_keymap_unref(NEWKEYMAP);
xkb_context_unref(PCONTEXT);
}
-
-void STextInput::setFocusedSurface(wlr_surface* pSurface) {
- focusedSurface = pSurface;
-
- hyprListener_surfaceUnmapped.removeCallback();
- hyprListener_surfaceDestroyed.removeCallback();
-
- if (!pSurface)
- return;
-
- hyprListener_surfaceUnmapped.initCallback(
- &pSurface->events.unmap,
- [this](void* owner, void* data) {
- if (!focusedSurface)
- return;
-
- focusedSurface = nullptr;
- hyprListener_surfaceUnmapped.removeCallback();
- hyprListener_surfaceDestroyed.removeCallback();
- g_pInputManager->m_sIMERelay.removeSurfaceToPTI(this);
- },
- this, "STextInput");
-
- hyprListener_surfaceDestroyed.initCallback(
- &pSurface->events.destroy,
- [this](void* owner, void* data) {
- if (!focusedSurface)
- return;
-
- focusedSurface = nullptr;
- hyprListener_surfaceUnmapped.removeCallback();
- hyprListener_surfaceDestroyed.removeCallback();
- g_pInputManager->m_sIMERelay.removeSurfaceToPTI(this);
- },
- this, "STextInput");
-} \ No newline at end of file