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
master
Aleix Pol 5 years ago
parent 515f3cbb4e
commit 22cbbca043

@ -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

Loading…
Cancel
Save