Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package layer-shell-qt for openSUSE:Factory 
checked in at 2022-10-11 18:01:03
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/layer-shell-qt (Old)
 and      /work/SRC/openSUSE:Factory/.layer-shell-qt.new.2275 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "layer-shell-qt"

Tue Oct 11 18:01:03 2022 rev:25 rq:1009113 version:5.26.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/layer-shell-qt/layer-shell-qt.changes    
2022-09-08 14:20:59.566283554 +0200
+++ /work/SRC/openSUSE:Factory/.layer-shell-qt.new.2275/layer-shell-qt.changes  
2022-10-11 18:03:22.657874119 +0200
@@ -1,0 +2,22 @@
+Thu Oct  6 14:48:43 UTC 2022 - Fabian Vogt <fab...@ritter-vogt.de>
+
+- Update to 5.26.0
+  * New bugfix release
+  * For more details please see:
+  * https://kde.org/announcements/plasma/5/5.26.0
+- No code changes since 5.25.90
+
+-------------------------------------------------------------------
+Thu Sep 15 20:46:54 UTC 2022 - Fabian Vogt <fab...@ritter-vogt.de>
+
+- Update to 5.25.90
+  * New feature release
+  * For more details please see:
+  * https://kde.org/announcements/plasma/5/5.25.90
+- Changes since 5.25.5:
+  * Add FreeBSD Qt6 CI support
+  * Make fully reuse compliant
+  * Use change signals on Window interface class.
+  * Mark required deps as required (kde#454912)
+
+-------------------------------------------------------------------

Old:
----
  layer-shell-qt-5.25.5.tar.xz
  layer-shell-qt-5.25.5.tar.xz.sig

New:
----
  layer-shell-qt-5.26.0.tar.xz
  layer-shell-qt-5.26.0.tar.xz.sig

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

Other differences:
------------------
++++++ layer-shell-qt.spec ++++++
--- /var/tmp/diff_new_pack.mRf7W4/_old  2022-10-11 18:03:23.129874882 +0200
+++ /var/tmp/diff_new_pack.mRf7W4/_new  2022-10-11 18:03:23.137874895 +0200
@@ -24,15 +24,15 @@
 
 %bcond_without released
 Name:           layer-shell-qt
-Version:        5.25.5
+Version:        5.26.0
 Release:        0
 Summary:        wlr-layer-shell integration for Qt
 License:        LGPL-3.0-or-later
 Group:          Development/Libraries/KDE
 URL:            https://www.kde.org
-Source:         
https://download.kde.org/stable/plasma/%{version}/layer-shell-qt-%{version}.tar.xz
+Source:         layer-shell-qt-%{version}.tar.xz
 %if %{with released}
-Source1:        
https://download.kde.org/stable/plasma/%{version}/layer-shell-qt-%{version}.tar.xz.sig
+Source1:        layer-shell-qt-%{version}.tar.xz.sig
 Source2:        plasma.keyring
 %endif
 BuildRequires:  cmake >= 3.16

++++++ layer-shell-qt-5.25.5.tar.xz -> layer-shell-qt-5.26.0.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/layer-shell-qt-5.25.5/.gitlab-ci.yml 
new/layer-shell-qt-5.26.0/.gitlab-ci.yml
--- old/layer-shell-qt-5.25.5/.gitlab-ci.yml    2022-09-06 14:24:49.000000000 
+0200
+++ new/layer-shell-qt-5.26.0/.gitlab-ci.yml    2022-10-06 14:23:55.000000000 
+0200
@@ -2,6 +2,8 @@
 # SPDX-License-Identifier: CC0-1.0
 
 include:
+  - 
https://invent.kde.org/sysadmin/ci-utilities/raw/master/gitlab-templates/reuse-lint.yml
   - 
https://invent.kde.org/sysadmin/ci-utilities/raw/master/gitlab-templates/linux.yml
   - 
https://invent.kde.org/sysadmin/ci-utilities/raw/master/gitlab-templates/freebsd.yml
   - 
https://invent.kde.org/sysadmin/ci-utilities/raw/master/gitlab-templates/linux-qt6.yml
+  - 
https://invent.kde.org/sysadmin/ci-utilities/raw/master/gitlab-templates/freebsd-qt6.yml
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/layer-shell-qt-5.25.5/CMakeLists.txt 
new/layer-shell-qt-5.26.0/CMakeLists.txt
--- old/layer-shell-qt-5.25.5/CMakeLists.txt    2022-09-06 14:24:49.000000000 
+0200
+++ new/layer-shell-qt-5.26.0/CMakeLists.txt    2022-10-06 14:23:55.000000000 
+0200
@@ -4,13 +4,13 @@
 cmake_minimum_required(VERSION 3.16)
 
 project(layershellqt)
-set(PROJECT_VERSION "5.25.5")
+set(PROJECT_VERSION "5.26.0")
 set(PROJECT_VERSION_MAJOR 5)
 
 set(CMAKE_C_STANDARD 99)
 
 set(QT_MIN_VERSION "5.15.2")
-set(KF5_MIN_VERSION "5.94")
+set(KF5_MIN_VERSION "5.98.0")
 set(KDE_COMPILERSETTINGS_LEVEL "5.82")
 
 set(CMAKE_CXX_STANDARD 17)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/layer-shell-qt-5.25.5/metainfo.yaml 
new/layer-shell-qt-5.26.0/metainfo.yaml
--- old/layer-shell-qt-5.25.5/metainfo.yaml     2022-09-06 14:24:49.000000000 
+0200
+++ new/layer-shell-qt-5.26.0/metainfo.yaml     2022-10-06 14:23:55.000000000 
+0200
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: None
+# SPDX-License-Identifier: CC0-1.0
+
 maintainer:
 - vladz
 description: Layer Shell Qt
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/layer-shell-qt-5.25.5/src/interfaces/window.cpp 
new/layer-shell-qt-5.26.0/src/interfaces/window.cpp
--- old/layer-shell-qt-5.25.5/src/interfaces/window.cpp 2022-09-06 
14:24:49.000000000 +0200
+++ new/layer-shell-qt-5.26.0/src/interfaces/window.cpp 2022-10-06 
14:23:55.000000000 +0200
@@ -5,10 +5,9 @@
  */
 
 #include "window.h"
-#include "../qwaylandlayersurface_p.h"
 #include <layershellqt_logging.h>
-#include <private/qwaylandshellsurface_p.h>
-#include <private/qwaylandwindow_p.h>
+
+#include <QPointer>
 
 using namespace LayerShellQt;
 
@@ -27,7 +26,6 @@
     Window::KeyboardInteractivity keyboardInteractivity = 
Window::KeyboardInteractivityExclusive;
     Window::Layer layer = Window::LayerTop;
     QMargins margins;
-    QWaylandLayerSurface *getSurface() const;
     QPointer<QScreen> desiredOutput;
 };
 
@@ -41,9 +39,7 @@
 void Window::setAnchors(Anchors anchors)
 {
     d->anchors = anchors;
-    if (auto surface = d->getSurface()) {
-        surface->setAnchor(anchors);
-    }
+    Q_EMIT anchorsChanged();
 }
 
 Window::Anchors Window::anchors() const
@@ -54,9 +50,7 @@
 void Window::setExclusiveZone(int32_t zone)
 {
     d->exclusionZone = zone;
-    if (auto surface = d->getSurface()) {
-        surface->setExclusiveZone(zone);
-    }
+    Q_EMIT exclusionZoneChanged();
 }
 
 int32_t Window::exclusionZone() const
@@ -67,9 +61,7 @@
 void Window::setMargins(const QMargins &margins)
 {
     d->margins = margins;
-    if (auto surface = d->getSurface()) {
-        surface->setMargins(margins);
-    }
+    Q_EMIT marginsChanged();
 }
 
 QMargins Window::margins() const
@@ -80,9 +72,7 @@
 void Window::setKeyboardInteractivity(KeyboardInteractivity interactivity)
 {
     d->keyboardInteractivity = interactivity;
-    if (auto surface = d->getSurface()) {
-        surface->setKeyboardInteractivity(interactivity);
-    }
+    Q_EMIT keyboardInteractivityChanged();
 }
 
 Window::KeyboardInteractivity Window::keyboardInteractivity() const
@@ -93,9 +83,6 @@
 void Window::setLayer(Layer layer)
 {
     d->layer = layer;
-    if (auto surface = d->getSurface()) {
-        surface->setLayer(layer);
-    }
 }
 
 void Window::setScope(const QString &scope)
@@ -139,21 +126,3 @@
     }
     return new Window(window);
 }
-
-QWaylandLayerSurface *WindowPrivate::getSurface() const
-{
-    if (!parentWindow) {
-        return nullptr;
-    }
-    auto ww = dynamic_cast<QtWaylandClient::QWaylandWindow 
*>(parentWindow->handle());
-    if (!ww) {
-        qCDebug(LAYERSHELLQT) << "window not a wayland window" << parentWindow;
-        return nullptr;
-    }
-    QWaylandLayerSurface *s = qobject_cast<QWaylandLayerSurface 
*>(ww->shellSurface());
-    if (!s) {
-        qCDebug(LAYERSHELLQT) << "window not using wlr-layer-shell" << 
parentWindow << ww->shellSurface();
-        return nullptr;
-    }
-    return s;
-}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/layer-shell-qt-5.25.5/src/interfaces/window.h 
new/layer-shell-qt-5.26.0/src/interfaces/window.h
--- old/layer-shell-qt-5.25.5/src/interfaces/window.h   2022-09-06 
14:24:49.000000000 +0200
+++ new/layer-shell-qt-5.26.0/src/interfaces/window.h   2022-10-06 
14:23:55.000000000 +0200
@@ -93,6 +93,13 @@
      */
     static Window *get(QWindow *window);
 
+Q_SIGNALS:
+    void anchorsChanged();
+    void exclusionZoneChanged();
+    void marginsChanged();
+    void keyboardInteractivityChanged();
+    void layerChanged();
+
 private:
     Window(QWindow *window);
     QScopedPointer<WindowPrivate> d;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/layer-shell-qt-5.25.5/src/qwaylandlayersurface.cpp 
new/layer-shell-qt-5.26.0/src/qwaylandlayersurface.cpp
--- old/layer-shell-qt-5.25.5/src/qwaylandlayersurface.cpp      2022-09-06 
14:24:49.000000000 +0200
+++ new/layer-shell-qt-5.26.0/src/qwaylandlayersurface.cpp      2022-10-06 
14:23:55.000000000 +0200
@@ -36,15 +36,31 @@
         }
     }
     init(shell->get_layer_surface(window->waylandSurface()->object(), output, 
interface->layer(), interface->scope()));
-
-    Window::Anchors anchors = interface->anchors();
+    connect(interface, &Window::layerChanged, this, [this, interface]() {
+        setLayer(interface->layer());
+    });
 
     set_anchor(interface->anchors());
+    connect(interface, &Window::anchorsChanged, this, [this, interface]() {
+        set_anchor(interface->anchors());
+    });
+    setExclusiveZone(interface->exclusionZone());
+    connect(interface, &Window::exclusionZoneChanged, this, [this, 
interface]() {
+        setExclusiveZone(interface->exclusionZone());
+    });
+
     setMargins(interface->margins());
+    connect(interface, &Window::marginsChanged, this, [this, interface]() {
+        setMargins(interface->margins());
+    });
+
     setKeyboardInteractivity(interface->keyboardInteractivity());
-    setExclusiveZone(interface->exclusionZone());
+    connect(interface, &Window::keyboardInteractivityChanged, this, [this, 
interface]() {
+        setKeyboardInteractivity(interface->keyboardInteractivity());
+    });
 
     QSize size = window->surfaceSize();
+    const Window::Anchors anchors = interface->anchors();
     if ((anchors & Window::AnchorLeft) && (anchors & Window::AnchorRight)) {
         size.setWidth(0);
     }

Reply via email to