Ike Devolder pushed to branch main at Arch Linux / Packaging / Packages / copyq


Commits:
e2e136da by Ike Devolder at 2026-11-21T14:09:32+01:00
upgpkg: 17.0.0-3

Fix wayland protocol error issue on Gnome

- - - - -


4 changed files:

- .SRCINFO
- + 0001-only-use-setWindowRole-for-X11-on-the-mainwindow.patch
- PKGBUILD
- REUSE.toml


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
 pkgbase = copyq
        pkgdesc = Clipboard manager with searchable and editable history
        pkgver = 17.0.0
-       pkgrel = 2
+       pkgrel = 3
        url = https://github.com/hluk/copyq
        arch = x86_64
        license = GPL-3.0-or-later
@@ -18,6 +18,8 @@ pkgbase = copyq
        depends = qtkeychain-qt6
        depends = miniaudio
        source = 
copyq-17.0.0.tar.gz::https://github.com/hluk/copyq/archive/v17.0.0.tar.gz
+       source = 0001-only-use-setWindowRole-for-X11-on-the-mainwindow.patch
        sha256sums = 
78c73c6213fe4cf0c91e462c9372228af17c72448a1a69c9e4b0d28c79ff5fbc
+       sha256sums = 
a2c4372f8bb96c336db112712b05b208888aafff5c09d321946716dd6d190f64
 
 pkgname = copyq


=====================================
0001-only-use-setWindowRole-for-X11-on-the-mainwindow.patch
=====================================
@@ -0,0 +1,36 @@
+From e12eb32b48d3bb186aa9690ada5702a50c422d03 Mon Sep 17 00:00:00 2001
+From: BlackEagle <[email protected]>
+Date: Sat, 21 Nov 2026 13:45:07 +0100
+Subject: [PATCH] only use setWindowRole for X11 on the mainwindow
+
+As stated in the docs setWindowRole it only usefull to do on X11.
+
+Since Qt6.12 it was added as a Known issue on Linux, from the bug it
+seems it is not entirely clear who should fix it.
+
+See: https://doc.qt.io/qt-6/qwidget.html#setWindowRole
+See: https://wiki.qt.io/Qt_6.12_Known_Issues
+Closes: #3768
+Signed-off-by: BlackEagle <[email protected]>
+---
+ src/gui/mainwindow.cpp | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/src/gui/mainwindow.cpp b/src/gui/mainwindow.cpp
+index d43fa634..5768fa6d 100644
+--- a/src/gui/mainwindow.cpp
++++ b/src/gui/mainwindow.cpp
+@@ -772,7 +772,9 @@ MainWindow::MainWindow(const ClipboardBrowserSharedPtr 
&sharedData, QWidget *par
+     m_sharedData->passwordPrompt = new PasswordPrompt(this);
+     m_sharedData->menuItems = menuItems();
+ 
+-    setWindowRole(QStringLiteral("main"));
++    // Window role is only usefull on X11 
(https://doc.qt.io/qt-6/qwidget.html#setWindowRole)
++    if ( QGuiApplication::platformName() == QLatin1String("xcb") )
++        setWindowRole(QStringLiteral("main"));
+ 
+     menuBar()->setObjectName("menu_bar");
+     createMenu();
+-- 
+2.56.1
+


=====================================
PKGBUILD
=====================================
@@ -5,20 +5,24 @@
 
 pkgname=copyq
 pkgver=17.0.0
-pkgrel=2
+pkgrel=3
 pkgdesc="Clipboard manager with searchable and editable history"
 url="https://github.com/hluk/${pkgname}";
 depends=('hicolor-icon-theme' 'qt6-svg' 'knotifications' 'kstatusnotifieritem' 
'kguiaddons' 'libxtst' 'qca-qt6' 'qtkeychain-qt6' 'miniaudio')
 makedepends=('extra-cmake-modules' 'qt6-tools' 'vulkan-headers')
 license=('GPL-3.0-or-later')
 arch=('x86_64')
-source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
-sha256sums=('78c73c6213fe4cf0c91e462c9372228af17c72448a1a69c9e4b0d28c79ff5fbc')
+source=(
+    "${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz"
+    '0001-only-use-setWindowRole-for-X11-on-the-mainwindow.patch'
+)
+sha256sums=('78c73c6213fe4cf0c91e462c9372228af17c72448a1a69c9e4b0d28c79ff5fbc'
+            'a2c4372f8bb96c336db112712b05b208888aafff5c09d321946716dd6d190f64')
 
-#prepare() {
-    #cd CopyQ-$pkgver
-    #patch -p1 -i "$srcdir/3268.patch"
-#}
+prepare() {
+    cd CopyQ-$pkgver
+    patch -p1 -i 
"$srcdir/0001-only-use-setWindowRole-for-X11-on-the-mainwindow.patch"
+}
 
 build() {
     cmake -B build -S CopyQ-$pkgver \


=====================================
REUSE.toml
=====================================
@@ -17,6 +17,7 @@ path = [
     "*.timer",
     "*.desktop",
     "*.hook",
+    "0001-only-use-setWindowRole-for-X11-on-the-mainwindow.patch",
 ]
 SPDX-FileCopyrightText = "Arch Linux contributors"
 SPDX-License-Identifier = "0BSD"



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/copyq/-/commit/e2e136dac9ea588b5e9f373cc495ad95f45223a3

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/copyq/-/commit/e2e136dac9ea588b5e9f373cc495ad95f45223a3
You're receiving this email because of your account on gitlab.archlinux.org. 
Manage all notifications: https://gitlab.archlinux.org/-/profile/notifications 
| Help: https://gitlab.archlinux.org/help


Reply via email to