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 2023-03-02 23:02:25 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/layer-shell-qt (Old) and /work/SRC/openSUSE:Factory/.layer-shell-qt.new.31432 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "layer-shell-qt" Thu Mar 2 23:02:25 2023 rev:33 rq:1068269 version:5.27.2 Changes: -------- --- /work/SRC/openSUSE:Factory/layer-shell-qt/layer-shell-qt.changes 2023-02-24 18:07:11.917080290 +0100 +++ /work/SRC/openSUSE:Factory/.layer-shell-qt.new.31432/layer-shell-qt.changes 2023-03-02 23:02:43.390952626 +0100 @@ -1,0 +2,10 @@ +Tue Feb 28 17:34:16 UTC 2023 - Fabian Vogt <[email protected]> + +- Update to 5.27.2 + * New bugfix release + * For more details please see: + * https://kde.org/announcements/plasma/5/5.27.2 +- Changes since 5.27.1: + * Use the QScreen of the QWindow as default output + +------------------------------------------------------------------- Old: ---- layer-shell-qt-5.27.1.tar.xz layer-shell-qt-5.27.1.tar.xz.sig New: ---- layer-shell-qt-5.27.2.tar.xz layer-shell-qt-5.27.2.tar.xz.sig ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ layer-shell-qt.spec ++++++ --- /var/tmp/diff_new_pack.CqMEIB/_old 2023-03-02 23:02:43.930955073 +0100 +++ /var/tmp/diff_new_pack.CqMEIB/_new 2023-03-02 23:02:43.934955091 +0100 @@ -24,7 +24,7 @@ %bcond_without released Name: layer-shell-qt -Version: 5.27.1 +Version: 5.27.2 Release: 0 Summary: wlr-layer-shell integration for Qt License: LGPL-3.0-or-later ++++++ layer-shell-qt-5.27.1.tar.xz -> layer-shell-qt-5.27.2.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/layer-shell-qt-5.27.1/CMakeLists.txt new/layer-shell-qt-5.27.2/CMakeLists.txt --- old/layer-shell-qt-5.27.1/CMakeLists.txt 2023-02-21 12:39:56.000000000 +0100 +++ new/layer-shell-qt-5.27.2/CMakeLists.txt 2023-02-28 13:20:25.000000000 +0100 @@ -4,7 +4,7 @@ cmake_minimum_required(VERSION 3.16) project(layershellqt) -set(PROJECT_VERSION "5.27.1") +set(PROJECT_VERSION "5.27.2") set(PROJECT_VERSION_MAJOR 5) set(CMAKE_C_STANDARD 99) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/layer-shell-qt-5.27.1/src/interfaces/window.cpp new/layer-shell-qt-5.27.2/src/interfaces/window.cpp --- old/layer-shell-qt-5.27.1/src/interfaces/window.cpp 2023-02-21 12:39:56.000000000 +0100 +++ new/layer-shell-qt-5.27.2/src/interfaces/window.cpp 2023-02-28 13:20:25.000000000 +0100 @@ -8,6 +8,7 @@ #include <layershellqt_logging.h> #include <QPointer> +#include <optional> using namespace LayerShellQt; @@ -26,7 +27,7 @@ Window::KeyboardInteractivity keyboardInteractivity = Window::KeyboardInteractivityExclusive; Window::Layer layer = Window::LayerTop; QMargins margins; - QPointer<QScreen> desiredOutput; + std::optional<QPointer<QScreen>> desiredOutput; }; static QMap<QWindow *, Window *> s_map; @@ -103,7 +104,12 @@ QScreen *Window::desiredOutput() const { - return d->desiredOutput; + // Don't use .value_or here to avoid a temporary QPointer + if (d->desiredOutput.has_value()) { + return d->desiredOutput.value(); + } + + return d->parentWindow->screen(); } void Window::setDesiredOutput(QScreen *output)
