[decorations] Delay closeWindow to next event cycle

Once again our famous "closing glxgears crashes Aurorae".

BUG: 346857
FIXED-IN: 5.4.3
REVIEW: 125704
This commit is contained in:
Martin Gräßlin 2015-10-19 17:26:17 +02:00
parent e2ffdadc6d
commit 10ad9262a1

View file

@ -163,10 +163,14 @@ DELEGATE(requestToggleKeepBelow, KeepBelowOp)
DELEGATE(requestContextHelp, showContextHelp)
DELEGATE(requestMinimize, minimize)
DELEGATE(requestClose, closeWindow)
#undef DELEGATE
void DecoratedClientImpl::requestClose()
{
QMetaObject::invokeMethod(m_client, "closeWindow", Qt::QueuedConnection);
}
QColor DecoratedClientImpl::color(KDecoration2::ColorGroup group, KDecoration2::ColorRole role) const
{
auto dp = m_client->decorationPalette();