diff --git a/shell_client.cpp b/shell_client.cpp index 7a2387bcd6..53a497d10f 100644 --- a/shell_client.cpp +++ b/shell_client.cpp @@ -1184,7 +1184,7 @@ void ShellClient::requestGeometry(const QRect &rect) configureRequest.maximizeMode = m_requestedMaximizeMode; const QSize size = rect.size() - QSize(borderLeft() + borderRight(), borderTop() + borderBottom()); - m_requestedClientSize = size; + m_requestedClientSize = QSize(0, 0); if (m_shellSurface) { m_shellSurface->requestSize(size); diff --git a/shell_client.h b/shell_client.h index a29a62377c..15e9286892 100644 --- a/shell_client.h +++ b/shell_client.h @@ -220,7 +220,7 @@ private: QSize m_clientSize; // last size we requested or empty if we haven't sent an explicit request to the client // if empty the client should choose their own default size - QSize m_requestedClientSize; + QSize m_requestedClientSize = QSize(0, 0); struct PendingConfigureRequest { //note for wl_shell we have no serial, so serialId and m_lastAckedConfigureRequest will always be 0