Also fix the flipped case anchor for input panel overlay mode.

This commit is contained in:
Weng Xuetian 2021-12-19 00:10:56 -08:00
parent 8c54c5937a
commit c07d3ce7ea
No known key found for this signature in database
GPG key ID: 8E8B898CBF2412F9

View file

@ -117,7 +117,7 @@ void KWin::InputPanelV1Client::reposition()
}
if (popupRect.top() < screen.top() || popupRect.bottom() > screen.bottom()) {
auto flippedPopupRect =
QRect(popupOffset(cursorRectangle, Qt::BottomEdge | Qt::LeftEdge, Qt::RightEdge | Qt::TopEdge, surface()->size()), surface()->size());
QRect(popupOffset(cursorRectangle, Qt::TopEdge | Qt::LeftEdge, Qt::RightEdge | Qt::TopEdge, surface()->size()), surface()->size());
// if it still doesn't fit we should continue with the unflipped version
if (flippedPopupRect.top() >= screen.top() || flippedPopupRect.bottom() <= screen.bottom()) {