From 14026d44845cff0c651ad7b59e290dfbb6df5a8c Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Fri, 5 Aug 2022 18:54:59 +0200 Subject: [PATCH] move IME panel below the cursor to not obstruct --- src/managers/input/InputMethodRelay.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/managers/input/InputMethodRelay.cpp b/src/managers/input/InputMethodRelay.cpp index 9fa3bf84..d828c01b 100644 --- a/src/managers/input/InputMethodRelay.cpp +++ b/src/managers/input/InputMethodRelay.cpp @@ -167,10 +167,10 @@ void CInputMethodRelay::updateInputPopup(SIMEPopup* pPopup) { wlr_box finalBox = cursorBox; pPopup->x = finalBox.x; - pPopup->y = finalBox.y; + pPopup->y = finalBox.y + finalBox.height; pPopup->realX = finalBox.x + parentPos.x; - pPopup->realY = finalBox.y + parentPos.y; + pPopup->realY = finalBox.y + parentPos.y + finalBox.height; wlr_input_popup_surface_v2_send_text_input_rectangle(pPopup->pSurface, &finalBox);