summaryrefslogtreecommitdiff
path: root/src/managers/input/InputMethodRelay.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-08-05 18:54:59 +0200
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-08-05 18:54:59 +0200
commit14026d44845cff0c651ad7b59e290dfbb6df5a8c (patch)
tree20f0fac2f03b034c003016904163a3a2a0363f3c /src/managers/input/InputMethodRelay.cpp
parentf44af0366fe84a14371865851da137f6ff881ea1 (diff)
move IME panel below the cursor to not obstruct
Diffstat (limited to 'src/managers/input/InputMethodRelay.cpp')
-rw-r--r--src/managers/input/InputMethodRelay.cpp4
1 files 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);