diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2017-04-15 14:11:35 +0200 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2017-04-15 17:11:22 +0200 |
commit | 301c2e6d2d322f3f38377fe20f94d55c849a5f37 (patch) | |
tree | 8752260a9f5d941a445500ec3a4f94c601fe3fb0 /kde-plasma | |
parent | kde-plasma/kwin: Fix build against >=x11-libs/libdrm-2.4.78 (diff) | |
download | gentoo-301c2e6d2d322f3f38377fe20f94d55c849a5f37.tar.gz gentoo-301c2e6d2d322f3f38377fe20f94d55c849a5f37.tar.bz2 gentoo-301c2e6d2d322f3f38377fe20f94d55c849a5f37.zip |
kde-plasma/kwin: Do not write GLPlatformInterface config
Changing compositor settings in Wayland shall not break X11 sessions.
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'kde-plasma')
-rw-r--r-- | kde-plasma/kwin/files/kwin-5.9.4-glconfig.patch | 37 | ||||
-rw-r--r-- | kde-plasma/kwin/kwin-5.9.4-r1.ebuild | 5 |
2 files changed, 41 insertions, 1 deletions
diff --git a/kde-plasma/kwin/files/kwin-5.9.4-glconfig.patch b/kde-plasma/kwin/files/kwin-5.9.4-glconfig.patch new file mode 100644 index 000000000000..90a746e8f28b --- /dev/null +++ b/kde-plasma/kwin/files/kwin-5.9.4-glconfig.patch @@ -0,0 +1,37 @@ +commit a936516107579df13362f6d2d6f91f26a447d6dd +Author: Martin Gräßlin <mgraesslin@kde.org> +Date: Mon Apr 3 06:53:05 2017 +0200 + + [kcmkwin/compositing] Do not write GLPlatformInterface config + + Summary: + The gui element to select the platform interface is dropped. Thus we + should not store the config for it. This is rather important as changing + compositor settings on Wayland would result in egl being written into the + config which potentially breaks an X11 session. + + BUG: 378114 + + Reviewers: #kwin, #plasma + + Subscribers: plasma-devel, kwin + + Tags: #kwin + + Differential Revision: https://phabricator.kde.org/D5285 + +diff --git a/kcmkwin/kwincompositing/compositing.cpp b/kcmkwin/kwincompositing/compositing.cpp +index c1cddb89d..102dfd18c 100644 +--- a/kcmkwin/kwincompositing/compositing.cpp ++++ b/kcmkwin/kwincompositing/compositing.cpp +@@ -309,10 +309,6 @@ void Compositing::save() + } + kwinConfig.writeEntry("Backend", backend); + kwinConfig.writeEntry("GLCore", glCore); +- const QModelIndex glIndex = m_openGLPlatformInterfaceModel->index(m_openGLPlatformInterface); +- if (glIndex.isValid()) { +- kwinConfig.writeEntry("GLPlatformInterface", glIndex.data(Qt::UserRole).toString()); +- } + if (!compositingRequired()) { + kwinConfig.writeEntry("WindowsBlockCompositing", windowsBlockCompositing()); + } diff --git a/kde-plasma/kwin/kwin-5.9.4-r1.ebuild b/kde-plasma/kwin/kwin-5.9.4-r1.ebuild index dad7f6668cc4..545e43d5dfec 100644 --- a/kde-plasma/kwin/kwin-5.9.4-r1.ebuild +++ b/kde-plasma/kwin/kwin-5.9.4-r1.ebuild @@ -88,7 +88,10 @@ DEPEND="${COMMON_DEPEND} RESTRICT+=" test" -PATCHES=( "${FILESDIR}/${PN}-5.8.6-libdrm-2.4.78.patch" ) +PATCHES=( + "${FILESDIR}/${PN}-5.8.6-libdrm-2.4.78.patch" + "${FILESDIR}/${P}-glconfig.patch" +) src_prepare() { kde5_src_prepare |