mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-22 18:09:50 +01:00
ime: account for text height in popup calcs
This commit is contained in:
parent
7e5a3eb045
commit
d63e8c8f45
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue