[wayland] Obey m_requestGeometryBlockCounter inside updateDecoration

Otherwise we can send our configure request too early

Reviewed-by: Bhushun Shah
icc-effect-5.17.5
David Edmundson 2019-06-22 17:13:43 +02:00
parent 02babfa36e
commit bc97232dfd
1 changed files with 3 additions and 1 deletions

View File

@ -591,7 +591,9 @@ void ShellClient::updateDecoration(bool check_workspace_pos, bool force)
if (m_xdgDecoration) {
auto mode = isDecorated() || m_userNoBorder ? XdgDecorationInterface::Mode::ServerSide: XdgDecorationInterface::Mode::ClientSide;
m_xdgDecoration->configure(mode);
m_xdgShellSurface->configure(xdgSurfaceStates(), m_requestedClientSize);
if (m_requestGeometryBlockCounter == 0) {
m_xdgShellSurface->configure(xdgSurfaceStates(), m_requestedClientSize);
}
}
getShadow();
if (check_workspace_pos)