.spec cosmetics, backport kwin/aurorae crasher fix (kde#346857)

epel9
Rex Dieter 9 years ago
parent 2b2551980b
commit 6053f91ee3

@ -0,0 +1,37 @@
From 10ad9262a184e1afc088bee35b7fa4c188d9d63f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= <mgraesslin@kde.org>
Date: Mon, 19 Oct 2015 17:26:17 +0200
Subject: [PATCH 3/3] [decorations] Delay closeWindow to next event cycle
Once again our famous "closing glxgears crashes Aurorae".
BUG: 346857
FIXED-IN: 5.4.3
REVIEW: 125704
---
decorations/decoratedclient.cpp | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/decorations/decoratedclient.cpp b/decorations/decoratedclient.cpp
index 9ebd241..69b2032 100644
--- a/decorations/decoratedclient.cpp
+++ b/decorations/decoratedclient.cpp
@@ -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();
--
2.5.0

@ -7,7 +7,7 @@
Name: kwin
Version: 5.4.2
Release: 1%{?dist}
Release: 2%{?dist}
Summary: KDE Window manager
# all sources are effectively GPLv2+, except for:
@ -27,12 +27,14 @@ Source0: http://download.kde.org/%{stable}/plasma/%{version}/%{name}-%{ve
%global majmin_ver %(echo %{version} | cut -d. -f1,2)
## upstream patches
Patch3: 0003-decorations-Delay-closeWindow-to-next-event-cycle.patch
## upstreamable patches
# Base
BuildRequires: kf5-rpm-macros
BuildRequires: cmake
BuildRequires: extra-cmake-modules
BuildRequires: kf5-rpm-macros
# Qt
BuildRequires: qt5-qtbase-devel
@ -251,6 +253,9 @@ fi
%changelog
* Tue Oct 20 2015 Rex Dieter <rdieter@fedoraproject.org> 5.4.2-2
- .spec cosmetics, backport kwin/aurorae crasher fix (kde#346857)
* Thu Oct 01 2015 Rex Dieter <rdieter@fedoraproject.org> - 5.4.2-1
- 5.4.2

Loading…
Cancel
Save