From 22cbbca0432f173eeae57e51364a2b26638361b3 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Sun, 23 Jun 2019 19:54:34 +0200 Subject: [PATCH] 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 --- rules.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules.cpp b/rules.cpp index af31d1538d..4c66f82676 100644 --- a/rules.cpp +++ b/rules.cpp @@ -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