[platforms/wayland] Always ack configure

Summary:
Per protocol a zero-size can be sent indicating that the client should resize
its surface to its liking. For now change the code such that it at least sends
the ack-configure back and leaves the current size untouched.

Test Plan: Compiles.

Reviewers: #kwin, davidedmundson

Reviewed By: #kwin, davidedmundson

Subscribers: kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D25128
This commit is contained in:
Roman Gilg 2019-11-03 17:02:47 +01:00
parent 932a1160f5
commit 9c0501eb8f

View file

@ -112,12 +112,11 @@ XdgShellOutput::~XdgShellOutput()
void XdgShellOutput::handleConfigure(const QSize &size, XdgShellSurface::States states, quint32 serial)
{
Q_UNUSED(states);
if (size.width() == 0 || size.height() == 0) {
return;
if (size.width() > 0 && size.height() > 0) {
setGeometry(geometry().topLeft(), size);
emit sizeChanged(size);
}
setGeometry(geometry().topLeft(), size);
m_xdgShellSurface->ackConfigure(serial);
emit sizeChanged(size);
}
void XdgShellOutput::updateWindowTitle()