Module Name: pkgsrc-wip
Committed By: Mark Davies <mark%ecs.vuw.ac.nz@localhost>
Pushed By: markd
Date: Sun Feb 1 23:22:38 2026 +1300
Changeset: 0b02780d570c9b789c5c30aa87cb00b491332c84
Modified Files:
plasma6-kwin-x11/distinfo
Added Files:
plasma6-kwin-x11/patches/patch-src_plugins_qpa_integration.cpp
Log Message:
plasma6-kwin-x11: fix build with qt6.10.2
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=0b02780d570c9b789c5c30aa87cb00b491332c84
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
plasma6-kwin-x11/distinfo | 1 +
.../patches/patch-src_plugins_qpa_integration.cpp | 39 ++++++++++++++++++++++
2 files changed, 40 insertions(+)
diffs:
diff --git a/plasma6-kwin-x11/distinfo b/plasma6-kwin-x11/distinfo
index 507c1a40cc..d1d9793165 100644
--- a/plasma6-kwin-x11/distinfo
+++ b/plasma6-kwin-x11/distinfo
@@ -4,5 +4,6 @@ BLAKE2s (kwin-x11-6.5.2.tar.xz) = f84454e8ae733c823fc3f89b4d1b82d2a69da53092bfa0
SHA512 (kwin-x11-6.5.2.tar.xz) = 3ca88c8212482dd3920c007edd81552fbcc9adb1b6969ae4f60f943875bbaa27282ed3f7ccb760af532ae1eba343049cb0047d02bc2b58ecc91da8be26a95a24
Size (kwin-x11-6.5.2.tar.xz) = 6860264 bytes
SHA1 (patch-cmake_modules_Findhwdata.cmake) = bcd738a30acc86a95787da05bcd7e8630043de81
+SHA1 (patch-src_plugins_qpa_integration.cpp) = 1d535e7ac99f4ea2bd71872eeca1338ef5e016c6
SHA1 (patch-src_utils_CMakeLists.txt) = 70c474c5d6d50530be5ca2c0bf31eb7165098ac1
SHA1 (patch-src_utils_ramfile.cpp) = c7dc38ba2cc2fb5ccdb4a5c77a0361cddfcf7b6f
diff --git a/plasma6-kwin-x11/patches/patch-src_plugins_qpa_integration.cpp b/plasma6-kwin-x11/patches/patch-src_plugins_qpa_integration.cpp
new file mode 100644
index 0000000000..0978b3074e
--- /dev/null
+++ b/plasma6-kwin-x11/patches/patch-src_plugins_qpa_integration.cpp
@@ -0,0 +1,39 @@
+$NetBSD$
+
+Build with qt6.10.2
+https://github.com/KDE/kwin/commit/d26749ec3653ae01e3a93fe0356d2fe33905b866
+
+--- src/plugins/qpa/integration.cpp.orig 2025-11-04 14:59:51.000000000 +0000
++++ src/plugins/qpa/integration.cpp
+@@ -88,17 +88,16 @@ bool Integration::hasCapability(Capabili
+ {
+ switch (cap) {
+ case ThreadedPixmaps:
+- return true;
+ case OpenGL:
+- return true;
+- case ThreadedOpenGL:
+- return false;
+- case BufferQueueingOpenGL:
+- return false;
+ case MultipleWindows:
+ case NonFullScreenWindows:
++#if QT_VERSION >= QT_VERSION_CHECK(6, 10, 2)
++ case OffscreenSurface:
++#endif
+ return true;
++ case ThreadedOpenGL:
++ case BufferQueueingOpenGL:
+ case RasterGLSurface:
+ return false;
+ default:
+ return QPlatformIntegration::hasCapability(cap);
+@@ -140,7 +139,7 @@ QPlatformWindow *Integration::createPlat
+
+ QPlatformOffscreenSurface *Integration::createPlatformOffscreenSurface(QOffscreenSurface *surface) const
+ {
+- return new OffscreenSurface(surface);
++ return new KWin::QPA::OffscreenSurface(surface);
+ }
+
+ QPlatformFontDatabase *Integration::fontDatabase() const