summaryrefslogtreecommitdiffstats
path: root/source/kde/kde/patch
diff options
context:
space:
mode:
author Patrick J Volkerding <volkerdi@slackware.com>2022-09-14 18:40:44 +0000
committer Eric Hameleers <alien@slackware.com>2022-09-15 07:00:12 +0200
commitaf3823880e7ef52647f4c88f75def46489cd46aa (patch)
tree1ba4eb6260d0b79f289dc24c06d062d30ec261a7 /source/kde/kde/patch
parent59871e54c88572772e40d35e8033c3aeaf128acd (diff)
downloadcurrent-af3823880e7ef52647f4c88f75def46489cd46aa.tar.gz
current-af3823880e7ef52647f4c88f75def46489cd46aa.tar.xz
Wed Sep 14 18:40:44 UTC 202220220914184044
ap/vim-9.0.0465-x86_64-1.txz: Upgraded. kde/plasma-integration-5.25.5-x86_64-2.txz: Rebuilt. [PATCH] Bring back workaround for threaded render loop not working on NVIDIA Wayland. Thanks to marav. l/jemalloc-5.3.0-x86_64-1.txz: Upgraded. Thanks to villeph. xap/vim-gvim-9.0.0465-x86_64-1.txz: Upgraded.
Diffstat (limited to 'source/kde/kde/patch')
-rw-r--r--source/kde/kde/patch/plasma-integration.patch1
-rw-r--r--source/kde/kde/patch/plasma-integration/52bd3c9c.patch42
2 files changed, 43 insertions, 0 deletions
diff --git a/source/kde/kde/patch/plasma-integration.patch b/source/kde/kde/patch/plasma-integration.patch
new file mode 100644
index 000000000..64f0f6eeb
--- /dev/null
+++ b/source/kde/kde/patch/plasma-integration.patch
@@ -0,0 +1 @@
+cat $CWD/patch/plasma-integration/52bd3c9c.patch | patch -p1 --verbose || { touch ${SLACK_KDE_BUILD_DIR}/${PKGNAME}.failed ; continue ; }
diff --git a/source/kde/kde/patch/plasma-integration/52bd3c9c.patch b/source/kde/kde/patch/plasma-integration/52bd3c9c.patch
new file mode 100644
index 000000000..4a0112663
--- /dev/null
+++ b/source/kde/kde/patch/plasma-integration/52bd3c9c.patch
@@ -0,0 +1,42 @@
+From 52bd3c9cc2a78e2ba8d87e09e01706d309720a6f Mon Sep 17 00:00:00 2001
+From: Vlad Zahorodnii <vlad.zahorodnii@kde.org>
+Date: Tue, 13 Sep 2022 11:41:03 +0300
+Subject: [PATCH] Bring back workaround for threaded render loop not working on
+ NVIDIA Wayland
+
+For more details, check QTBUG-95817. But to summarize it in a couple of
+words: a window will stop pushing buffers when it's resized and using
+threaded render loop.
+
+CCBUG: 455575
+---
+ src/platformtheme/qtquickrenderersettings.cpp | 13 +++++++++++++
+ 1 file changed, 13 insertions(+)
+
+diff --git a/src/platformtheme/qtquickrenderersettings.cpp b/src/platformtheme/qtquickrenderersettings.cpp
+index db7ecb5..fa99d5c 100644
+--- a/src/platformtheme/qtquickrenderersettings.cpp
++++ b/src/platformtheme/qtquickrenderersettings.cpp
+@@ -69,6 +69,19 @@ void initializeRendererSessions()
+ if (!qEnvironmentVariableIsSet("QSG_RENDER_LOOP")) {
+ if (!s.renderLoop().isEmpty()) {
+ qputenv("QSG_RENDER_LOOP", s.renderLoop().toLatin1());
++ } else if (QGuiApplication::platformName() == QLatin1String("wayland")) {
++#if QT_CONFIG(opengl)
++ // Workaround for Bug 432062 / QTBUG-95817
++ QOffscreenSurface surface;
++ surface.create();
++ if (checkContext.makeCurrent(&surface)) {
++ const char *vendor = reinterpret_cast<const char *>(checkContext.functions()->glGetString(GL_VENDOR));
++ if (qstrcmp(vendor, "NVIDIA Corporation") == 0) {
++ // Otherwise Qt Quick Windows break when resized
++ qputenv("QSG_RENDER_LOOP", "basic");
++ }
++ }
++#endif
+ }
+ }
+ }
+--
+GitLab
+