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

master
Weng Xuetian 3 years ago
parent 8c54c5937a
commit c07d3ce7ea
No known key found for this signature in database
GPG Key ID: 8E8B898CBF2412F9

@ -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()) {

Loading…
Cancel
Save