diff --git a/src/ui/classic/xcbinputwindow.cpp b/src/ui/classic/xcbinputwindow.cpp index 3513464a..93c3b55c 100644 --- a/src/ui/classic/xcbinputwindow.cpp +++ b/src/ui/classic/xcbinputwindow.cpp @@ -74,6 +74,8 @@ int XCBInputWindow::calculatePositionX(const Rect &cursorRect, if (newX + actualWidth > closestScreen->right()) { newX = closestScreen->right() - actualWidth; } + + x = std::max(newX, closestScreen->left()); } // exclude shadow border width