diff options
| author | vaxerski <vaxry@vaxry.net> | 2023-01-10 19:21:59 +0100 |
|---|---|---|
| committer | vaxerski <vaxry@vaxry.net> | 2023-01-10 19:21:59 +0100 |
| commit | 4ec034ad49d1f03ec4cd68ca0a09e2f781166b16 (patch) | |
| tree | c395ce6745d189fd1c4ea56b032740ed804b35d0 /src/managers/input | |
| parent | 20a1a47e665da336a87caa3036682bd142aa02b8 (diff) | |
send enter for IME popups
Diffstat (limited to 'src/managers/input')
| -rw-r--r-- | src/managers/input/InputMethodRelay.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/managers/input/InputMethodRelay.cpp b/src/managers/input/InputMethodRelay.cpp index 93c7040b..e90f92d9 100644 --- a/src/managers/input/InputMethodRelay.cpp +++ b/src/managers/input/InputMethodRelay.cpp @@ -191,6 +191,9 @@ void Events::listener_mapInputPopup(void* owner, void* data) { Debug::log(LOG, "Mapped an IME Popup"); g_pInputManager->m_sIMERelay.updateInputPopup(PPOPUP); + + if (const auto PMONITOR = g_pCompositor->getMonitorFromVector(Vector2D(PPOPUP->realX, PPOPUP->realY) + PPOPUP->lastSize / 2.f); PMONITOR) + wlr_surface_send_enter(PPOPUP->pSurface->surface, PMONITOR->output); } void Events::listener_unmapInputPopup(void* owner, void* data) { |
