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.
This commit is contained in:
parent
defca98a1e
commit
a18ccb06e6
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue