summaryrefslogtreecommitdiff
path: root/src/managers/input/InputMethodRelay.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/managers/input/InputMethodRelay.cpp')
-rw-r--r--src/managers/input/InputMethodRelay.cpp9
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;
+}