diff options
Diffstat (limited to 'src/managers/input/InputMethodRelay.cpp')
| -rw-r--r-- | src/managers/input/InputMethodRelay.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/managers/input/InputMethodRelay.cpp b/src/managers/input/InputMethodRelay.cpp index 8c21247a..a2d75f20 100644 --- a/src/managers/input/InputMethodRelay.cpp +++ b/src/managers/input/InputMethodRelay.cpp @@ -221,3 +221,12 @@ CInputPopup* CInputMethodRelay::popupFromCoords(const Vector2D& point) { return nullptr; } + +CInputPopup* CInputMethodRelay::popupFromSurface(const wlr_surface* surface) { + for (auto& p : m_vIMEPopups) { + if (p->getWlrSurface() == surface) + return p.get(); + } + + return nullptr; +} |
