From 8c54c5937a2d89cb0ee87d57b44979392ce05f2f Mon Sep 17 00:00:00 2001 From: Weng Xuetian Date: Sat, 18 Dec 2021 21:06:14 -0800 Subject: [PATCH] Fix the input panel popup anchor position. It should be bottom left instead of top left of the cursor rect. --- src/inputpanelv1client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/inputpanelv1client.cpp b/src/inputpanelv1client.cpp index 57089dbf7c..5ef92d1b11 100644 --- a/src/inputpanelv1client.cpp +++ b/src/inputpanelv1client.cpp @@ -107,7 +107,7 @@ void KWin::InputPanelV1Client::reposition() const QRect screen = Workspace::self()->clientArea(PlacementArea, cursorRectangle.bottomLeft(), 0); // Reuse the similar logic like xdg popup - QRect popupRect(popupOffset(cursorRectangle, Qt::TopEdge | Qt::LeftEdge, Qt::RightEdge | Qt::BottomEdge, surface()->size()), surface()->size()); + QRect popupRect(popupOffset(cursorRectangle, Qt::BottomEdge | Qt::LeftEdge, Qt::RightEdge | Qt::BottomEdge, surface()->size()), surface()->size()); if (popupRect.left() < screen.left()) { popupRect.moveLeft(screen.left());