Make sure we don't resize clients before they've been set up

Summary:
On Placement=Maximized it becomes a problem because we end up sending an invalid size and when we try to recover from it, we recover from the wrong size.
This fixes setting the right size to Plasma Mobile applications.

Reviewers: #kwin

Subscribers: kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D22054
This commit is contained in:
Aleix Pol 2019-06-23 19:54:34 +02:00
parent 515f3cbb4e
commit 22cbbca043

View file

@ -938,7 +938,7 @@ void AbstractClient::applyWindowRules()
workspace()->activateNextClient(this);
// Closeable
QSize s = adjustedSize();
if (s != size())
if (s != size() && s.isValid())
resizeWithChecks(s);
// Autogrouping : Only checked on window manage
// AutogroupInForeground : Only checked on window manage