mirror of
https://github.com/hyprwm/Hyprland.git
synced 2024-10-30 05:51:44 +00:00
ime: account for text height in popup calcs
This commit is contained in:
parent
7e5a3eb045
commit
d63e8c8f45
@ -211,7 +211,7 @@ void CInputMethodRelay::updateInputPopup(SIMEPopup* pPopup) {
|
||||
|
||||
wlr_box finalBox = cursorBox;
|
||||
|
||||
if (cursorBox.y + parentPos.y + pPopup->pSurface->surface->current.height > pMonitor->vecPosition.y + pMonitor->vecSize.y)
|
||||
if (cursorBox.y + parentPos.y + pPopup->pSurface->surface->current.height + finalBox.height > pMonitor->vecPosition.y + pMonitor->vecSize.y)
|
||||
finalBox.y -= pPopup->pSurface->surface->current.height + finalBox.height;
|
||||
|
||||
if (cursorBox.x + parentPos.x + pPopup->pSurface->surface->current.width > pMonitor->vecPosition.x + pMonitor->vecSize.x)
|
||||
|
Loading…
Reference in New Issue
Block a user