Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package kf6-kguiaddons for openSUSE:Factory 
checked in at 2025-12-16 15:50:58
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/kf6-kguiaddons (Old)
 and      /work/SRC/openSUSE:Factory/.kf6-kguiaddons.new.1939 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "kf6-kguiaddons"

Tue Dec 16 15:50:58 2025 rev:22 rq:1322714 version:6.21.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/kf6-kguiaddons/kf6-kguiaddons.changes    
2025-11-17 12:16:42.656900317 +0100
+++ /work/SRC/openSUSE:Factory/.kf6-kguiaddons.new.1939/kf6-kguiaddons.changes  
2025-12-16 15:56:06.574492305 +0100
@@ -1,0 +2,14 @@
+Fri Dec 12 20:17:25 UTC 2025 - Christophe Marin <[email protected]>
+
+- Update to 6.21.0
+  * New feature release
+  * For more details please see:
+  * https://kde.org/announcements/frameworks/6/6.21.0
+- Changes since 6.20.0:
+  * Update dependency version to 6.21.0
+  * WaylandClipboard: Avoid overriding original UTF-8 text
+  * SystemClipboard: Destroy old data source after set_selection or 
set_primary_selection
+  * systemclipboard: Dont offer utf8 text again if it's already in the data
+  * Update version to 6.21.0
+
+-------------------------------------------------------------------

Old:
----
  kguiaddons-6.20.0.tar.xz
  kguiaddons-6.20.0.tar.xz.sig

New:
----
  kguiaddons-6.21.0.tar.xz
  kguiaddons-6.21.0.tar.xz.sig

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ kf6-kguiaddons.spec ++++++
--- /var/tmp/diff_new_pack.MXLvC7/_old  2025-12-16 15:56:07.818544898 +0100
+++ /var/tmp/diff_new_pack.MXLvC7/_new  2025-12-16 15:56:07.822545067 +0100
@@ -32,11 +32,11 @@
 %define mypython_sitearch %{expand:%%%{mypython}_sitearch}
 %endif
 
-# Full KF6 version (e.g. 6.20.0)
+# Full KF6 version (e.g. 6.21.0)
 %{!?_kf6_version: %global _kf6_version %{version}}
 %bcond_without released
 Name:           kf6-kguiaddons
-Version:        6.20.0
+Version:        6.21.0
 Release:        0
 Summary:        Utilities for graphical user interfaces
 License:        LGPL-2.1-or-later


++++++ kguiaddons-6.20.0.tar.xz -> kguiaddons-6.21.0.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kguiaddons-6.20.0/CMakeLists.txt 
new/kguiaddons-6.21.0/CMakeLists.txt
--- old/kguiaddons-6.20.0/CMakeLists.txt        2025-11-07 20:00:49.000000000 
+0100
+++ new/kguiaddons-6.21.0/CMakeLists.txt        2025-12-05 14:21:33.000000000 
+0100
@@ -1,10 +1,10 @@
 cmake_minimum_required(VERSION 3.16)
 
-set(KF_VERSION "6.20.0") # handled by release scripts
+set(KF_VERSION "6.21.0") # handled by release scripts
 project(KGuiAddons VERSION ${KF_VERSION})
 
 include(FeatureSummary)
-find_package(ECM 6.20.0  NO_MODULE)
+find_package(ECM 6.21.0  NO_MODULE)
 set_package_properties(ECM PROPERTIES TYPE REQUIRED DESCRIPTION "Extra CMake 
Modules." URL "https://commits.kde.org/extra-cmake-modules";)
 feature_summary(WHAT REQUIRED_PACKAGES_NOT_FOUND 
FATAL_ON_MISSING_REQUIRED_PACKAGES)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/kguiaddons-6.20.0/src/systemclipboard/waylandclipboard.cpp 
new/kguiaddons-6.21.0/src/systemclipboard/waylandclipboard.cpp
--- old/kguiaddons-6.20.0/src/systemclipboard/waylandclipboard.cpp      
2025-11-07 20:00:49.000000000 +0100
+++ new/kguiaddons-6.21.0/src/systemclipboard/waylandclipboard.cpp      
2025-12-05 14:21:33.000000000 +0100
@@ -322,7 +322,7 @@
     for (const QString &format : formats) {
         offer(format);
     }
-    if (mimeData->hasText()) {
+    if (mimeData->hasText() && !m_mimeData->hasFormat(utf8Text())) {
         // ensure GTK applications get this mimetype to avoid them discarding 
the offer
         offer(QStringLiteral("text/plain;charset=utf-8"));
     }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/kguiaddons-6.20.0/src/systemclipboard/wlrwaylandclipboard.cpp 
new/kguiaddons-6.21.0/src/systemclipboard/wlrwaylandclipboard.cpp
--- old/kguiaddons-6.20.0/src/systemclipboard/wlrwaylandclipboard.cpp   
2025-11-07 20:00:49.000000000 +0100
+++ new/kguiaddons-6.21.0/src/systemclipboard/wlrwaylandclipboard.cpp   
2025-12-05 14:21:33.000000000 +0100
@@ -322,7 +322,7 @@
     for (const QString &format : formats) {
         offer(format);
     }
-    if (mimeData->hasText()) {
+    if (mimeData->hasText() && !formats.contains(utf8Text())) {
         // ensure GTK applications get this mimetype to avoid them discarding 
the offer
         offer(QStringLiteral("text/plain;charset=utf-8"));
     }
@@ -340,7 +340,7 @@
 void WlrDataControlSource::zwlr_data_control_source_v1_send(const QString 
&mime_type, int32_t fd)
 {
     QString send_mime_type = mime_type;
-    if (send_mime_type == QStringLiteral("text/plain;charset=utf-8")) {
+    if (send_mime_type == utf8Text() && !m_mimeData->hasFormat(utf8Text())) {
         // if we get a request on the fallback mime, send the data from the 
original mime type
         send_mime_type = QStringLiteral("text/plain");
     }
@@ -478,23 +478,30 @@
 
 void WlrDataControlDevice::setSelection(std::unique_ptr<WlrDataControlSource> 
selection)
 {
+    set_selection(selection->object());
+
+    // Note the previous selection is destroyed after the set_selection 
request.
     m_selection = std::move(selection);
     connect(m_selection.get(), &WlrDataControlSource::cancelled, this, 
[this]() {
         m_selection.reset();
     });
-    set_selection(m_selection->object());
+
     Q_EMIT selectionChanged();
 }
 
 void 
WlrDataControlDevice::setPrimarySelection(std::unique_ptr<WlrDataControlSource> 
selection)
 {
+    if (zwlr_data_control_device_v1_get_version(object()) >= 
ZWLR_DATA_CONTROL_DEVICE_V1_SET_PRIMARY_SELECTION_SINCE_VERSION) {
+        set_primary_selection(m_primarySelection->object());
+    }
+
+    // Note the previous selection is destroyed after the 
set_primary_selection request.
     m_primarySelection = std::move(selection);
     connect(m_primarySelection.get(), &WlrDataControlSource::cancelled, this, 
[this]() {
         m_primarySelection.reset();
     });
 
     if (zwlr_data_control_device_v1_get_version(object()) >= 
ZWLR_DATA_CONTROL_DEVICE_V1_SET_PRIMARY_SELECTION_SINCE_VERSION) {
-        set_primary_selection(m_primarySelection->object());
         Q_EMIT primarySelectionChanged();
     }
 }

Reply via email to