Use bufferGeometry as base point for input panel popup.

The cordinate from text-input protocol is based on original surface, instead
of the geometry based on any external protocol, e.g. xdg_surface.
master
Weng Xuetian 3 years ago committed by Xuetian Weng
parent defca98a1e
commit a18ccb06e6

@ -103,7 +103,7 @@ void KWin::InputPanelV1Client::reposition()
cursorRectangle = textInputV3->cursorRectangle();
}
if (textClient) {
cursorRectangle.translate(textClient->pos() + textClient->clientPos());
cursorRectangle.translate(textClient->bufferGeometry().topLeft());
const QRect screen = Workspace::self()->clientArea(PlacementArea, cursorRectangle.bottomLeft(), 0);
// Reuse the similar logic like xdg popup

Loading…
Cancel
Save