diff --git a/src/abstract_client.cpp b/src/abstract_client.cpp index 39910830e5..e5c72d948f 100644 --- a/src/abstract_client.cpp +++ b/src/abstract_client.cpp @@ -2654,7 +2654,7 @@ void AbstractClient::setVirtualKeyboardGeometry(const QRect &geo) } const QRect availableArea = workspace()->clientArea(MaximizeArea, this); - QRect newWindowGeometry = m_keyboardGeometryRestore; + QRect newWindowGeometry = (maximizeMode() & MaximizeHorizontal) ? availableArea : m_keyboardGeometryRestore; newWindowGeometry.moveBottom(geo.top()); newWindowGeometry.setTop(qMax(newWindowGeometry.top(), availableArea.top()));