Commit 9c0501eb authored by Roman Gilg's avatar Roman Gilg
Browse files

[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
parent 932a1160
......@@ -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()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment