diff options
| author | Vaxry <vaxry@vaxry.net> | 2024-03-24 16:08:25 +0000 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2024-03-24 16:08:25 +0000 |
| commit | 5cc4bf699cfe4d5915b8ea9f2a7c8449cdc7bd2f (patch) | |
| tree | d524435ee7bafe19d1bfdb2d741bc0e2c7ae30ee /src/managers/input/InputManager.cpp | |
| parent | acf15e5579a5d2bbbe4a13e87306445e31ea5e4f (diff) | |
IME: Refactor and fixup popups
Diffstat (limited to 'src/managers/input/InputManager.cpp')
| -rw-r--r-- | src/managers/input/InputManager.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/managers/input/InputManager.cpp b/src/managers/input/InputManager.cpp index 94e6abec..9f38ab22 100644 --- a/src/managers/input/InputManager.cpp +++ b/src/managers/input/InputManager.cpp @@ -215,10 +215,10 @@ void CInputManager::mouseMoveUnified(uint32_t time, bool refocus) { // also IME popups if (!foundSurface) { - auto popup = g_pCompositor->vectorToIMEPopup(mouseCoords, m_sIMERelay.m_lIMEPopups); + auto popup = g_pInputManager->m_sIMERelay.popupFromCoords(mouseCoords); if (popup) { - foundSurface = popup->pSurface->surface; - surfacePos = Vector2D(popup->realX, popup->realY); + foundSurface = popup->getWlrSurface(); + surfacePos = popup->globalBox().pos(); } } |
