Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package kguiaddons for openSUSE:Factory 
checked in at 2023-02-13 16:38:22
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/kguiaddons (Old)
 and      /work/SRC/openSUSE:Factory/.kguiaddons.new.1848 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "kguiaddons"

Mon Feb 13 16:38:22 2023 rev:111 rq:1064587 version:5.103.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/kguiaddons/kguiaddons.changes    2023-01-16 
18:00:11.519250171 +0100
+++ /work/SRC/openSUSE:Factory/.kguiaddons.new.1848/kguiaddons.changes  
2023-02-13 16:40:11.823084914 +0100
@@ -1,0 +2,12 @@
+Wed Feb  8 09:12:52 UTC 2023 - Christophe Marin <[email protected]>
+
+- Update to 5.103.0
+  * New feature release
+  * For more details please see:
+  * https://kde.org/announcements/frameworks/5/5.103.0
+- Changes since 5.102.0:
+  * waylandinhibition singleton pattern for ShortcutsInhibitManager
+  * waylandclipboard: roundtrip to get accurate focus state (kde#463199)
+  * KColorSchemeWatcherMac: do not use new NSAppearance API on older macOS 
versions (kde#463752)
+
+-------------------------------------------------------------------

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

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

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

Other differences:
------------------
++++++ kguiaddons.spec ++++++
--- /var/tmp/diff_new_pack.1Fu7o4/_old  2023-02-13 16:40:12.371088123 +0100
+++ /var/tmp/diff_new_pack.1Fu7o4/_new  2023-02-13 16:40:12.375088147 +0100
@@ -17,7 +17,7 @@
 
 
 %define lname   libKF5GuiAddons5
-%define _tar_path 5.102
+%define _tar_path 5.103
 # Full KF5 version (e.g. 5.33.0)
 %{!?_kf5_version: %global _kf5_version %{version}}
 # Last major and minor KF5 version (e.g. 5.33)
@@ -25,7 +25,7 @@
 # Only needed for the package signature condition
 %bcond_without released
 Name:           kguiaddons
-Version:        5.102.0
+Version:        5.103.0
 Release:        0
 Summary:        Utilities for graphical user interfaces
 License:        LGPL-2.1-or-later
@@ -86,8 +86,7 @@
 %kf5_makeinstall -C build
 %fdupes %{buildroot}
 
-%post -n %{lname} -p /sbin/ldconfig
-%postun -n %{lname} -p /sbin/ldconfig
+%ldconfig_scriptlets -n %{lname}
 
 %files
 %license LICENSES/*


++++++ kguiaddons-5.102.0.tar.xz -> kguiaddons-5.103.0.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kguiaddons-5.102.0/CMakeLists.txt 
new/kguiaddons-5.103.0/CMakeLists.txt
--- old/kguiaddons-5.102.0/CMakeLists.txt       2023-01-07 01:27:56.000000000 
+0100
+++ new/kguiaddons-5.103.0/CMakeLists.txt       2023-02-05 10:21:45.000000000 
+0100
@@ -1,10 +1,10 @@
 cmake_minimum_required(VERSION 3.16)
 
-set(KF_VERSION "5.102.0") # handled by release scripts
+set(KF_VERSION "5.103.0") # handled by release scripts
 project(KGuiAddons VERSION ${KF_VERSION})
 
 include(FeatureSummary)
-find_package(ECM 5.102.0  NO_MODULE)
+find_package(ECM 5.103.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-5.102.0/src/colors/kcolorschemewatcher_mac.mm 
new/kguiaddons-5.103.0/src/colors/kcolorschemewatcher_mac.mm
--- old/kguiaddons-5.102.0/src/colors/kcolorschemewatcher_mac.mm        
2023-01-07 01:27:56.000000000 +0100
+++ new/kguiaddons-5.103.0/src/colors/kcolorschemewatcher_mac.mm        
2023-02-05 10:21:45.000000000 +0100
@@ -34,5 +34,16 @@
 
 KColorSchemeWatcher::ColorPreference 
KColorSchemeWatcherMac::systemPreference() const
 {
-    return NSAppearance.currentDrawingAppearance.name == 
NSAppearanceNameDarkAqua ? KColorSchemeWatcher::PreferDark : 
KColorSchemeWatcher::PreferLight;
+    NSAppearance *appearance = nullptr;
+
+    if (@available(macOS 11.0, *)) {
+        appearance = NSAppearance.currentDrawingAppearance;
+    } else if (@available(macOS 10.14, *)) {
+        appearance = NSAppearance.currentAppearance;
+    } else {
+        // macOS < 10.14 (Mojave) does not support a light/dark mode switch, 
always prefer light mode
+        return KColorSchemeWatcher::PreferLight;
+    }
+
+    return appearance.name == NSAppearanceNameDarkAqua ? 
KColorSchemeWatcher::PreferDark : KColorSchemeWatcher::PreferLight;
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/kguiaddons-5.102.0/src/recorder/waylandinhibition.cpp 
new/kguiaddons-5.103.0/src/recorder/waylandinhibition.cpp
--- old/kguiaddons-5.102.0/src/recorder/waylandinhibition.cpp   2023-01-07 
01:27:56.000000000 +0100
+++ new/kguiaddons-5.103.0/src/recorder/waylandinhibition.cpp   2023-02-05 
10:21:45.000000000 +0100
@@ -99,11 +99,11 @@
 
 static std::shared_ptr<ShortcutsInhibitManager> theManager()
 {
-    static std::weak_ptr<ShortcutsInhibitManager> manager;
-    std::shared_ptr<ShortcutsInhibitManager> ret;
+    static std::weak_ptr<ShortcutsInhibitManager> managerInstance;
+    std::shared_ptr<ShortcutsInhibitManager> ret = managerInstance.lock();
     if (!ret) {
         ret = std::make_shared<ShortcutsInhibitManager>();
-        manager = ret;
+        managerInstance = ret;
     }
     return ret;
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/kguiaddons-5.102.0/src/systemclipboard/waylandclipboard.cpp 
new/kguiaddons-5.103.0/src/systemclipboard/waylandclipboard.cpp
--- old/kguiaddons-5.102.0/src/systemclipboard/waylandclipboard.cpp     
2023-01-07 01:27:56.000000000 +0100
+++ new/kguiaddons-5.103.0/src/systemclipboard/waylandclipboard.cpp     
2023-02-05 10:21:45.000000000 +0100
@@ -609,9 +609,14 @@
     if (!m_device) {
         return;
     }
-    // If the application is focused, use the normal mechanism so a future 
paste will not deadlock itself
-    // On enter Qt delays processing of the enter event but when a window is 
hidden the leave event arrives after hiding the window
-    if (const auto fw = QGuiApplication::focusWindow(); (fw && 
fw->isVisible()) || (!fw && m_keyboardFocusWatcher->hasFocus())) {
+
+    // roundtrip to have accurate focus state when losing focus but setting 
mime data before processing wayland events.
+    auto native = qGuiApp->platformNativeInterface();
+    auto display = static_cast<struct ::wl_display 
*>(native->nativeResourceForIntegration("wl_display"));
+    wl_display_roundtrip(display);
+
+    // If the application is focused, use the normal mechanism so a future 
paste will not deadlock itselfs
+    if (m_keyboardFocusWatcher->hasFocus()) {
         QGuiApplication::clipboard()->setMimeData(mime, mode);
         return;
     }

Reply via email to