send enter for IME popups

This commit is contained in:
Vaxry 2023-01-10 19:21:59 +01:00
parent 20a1a47e66
commit 4ec034ad49

View file

@ -191,6 +191,9 @@ void Events::listener_mapInputPopup(void* owner, void* data) {
Debug::log(LOG, "Mapped an IME Popup"); Debug::log(LOG, "Mapped an IME Popup");
g_pInputManager->m_sIMERelay.updateInputPopup(PPOPUP); 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) { void Events::listener_unmapInputPopup(void* owner, void* data) {