From 2d1994e06691e79c4754d60634fb5c8b3e9f4e02 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Fri, 15 Jan 2021 14:51:58 +0200 Subject: [PATCH] aurorae: Make direct connection to maximizedChanged signal If the maximizedChanged connection is queued, several configure events will be sent. If the client acks the first configure event and later on acks the second one, the maximize animation will be cancelled due to "unexpected" geometry change. Based on the code, there is no clear reason why the connection is queued in the first place. CCBUG: 431415 --- plugins/kdecorations/aurorae/src/aurorae.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/kdecorations/aurorae/src/aurorae.cpp b/plugins/kdecorations/aurorae/src/aurorae.cpp index 5242cb7f11..b9968479d4 100644 --- a/plugins/kdecorations/aurorae/src/aurorae.cpp +++ b/plugins/kdecorations/aurorae/src/aurorae.cpp @@ -345,7 +345,7 @@ void Decoration::init() } auto decorationClient = clientPointer(); - connect(decorationClient, &KDecoration2::DecoratedClient::maximizedChanged, this, &Decoration::updateBorders, Qt::QueuedConnection); + connect(decorationClient, &KDecoration2::DecoratedClient::maximizedChanged, this, &Decoration::updateBorders); connect(decorationClient, &KDecoration2::DecoratedClient::shadedChanged, this, &Decoration::updateBorders); updateBorders(); if (m_view) {