Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package kwin6 for openSUSE:Factory checked 
in at 2026-11-27 19:40:24
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/kwin6 (Old)
 and      /work/SRC/openSUSE:Factory/.kwin6.new.1340718 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "kwin6"

Fri Nov 27 19:40:24 2026 rev:65 rq:1400377 version:6.8.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/kwin6/kwin6.changes      2026-11-13 
18:27:43.924995843 +0100
+++ /work/SRC/openSUSE:Factory/.kwin6.new.1340718/kwin6.changes 2026-11-27 
19:40:41.466940746 +0100
@@ -1,0 +2,16 @@
+Tue Nov 24 19:07:58 UTC 2026 - Christophe Marin <[email protected]>
+
+- Add upstream changes:
+  * 0001-backends-libinput-only-process-device-add-events-on-.patch 
(kde#528936)
+  * 0001-input-only-init-backends-after-InputRedirection.patch (kde#528824)
+
+-------------------------------------------------------------------
+Wed Nov 11 14:24:19 UTC 2026 - Tomáš Chvátal <[email protected]>
+
+- Fix the Plasma Wayland session on driverless hardware (no render
+  node, e.g. QEMU std VGA), so it starts reliably: expose EACCES
+  as a Session::Error and retry the DRM open on EBusy or EAccess
+  (MR !10326, backported to Plasma/6.8 in MR !10367).
+  * 0001-drm-open-eacces-retry.patch
+
+-------------------------------------------------------------------

New:
----
  0001-backends-libinput-only-process-device-add-events-on-.patch
  0001-drm-open-eacces-retry.patch
  0001-input-only-init-backends-after-InputRedirection.patch

----------(New B)----------
  New:- Add upstream changes:
  * 0001-backends-libinput-only-process-device-add-events-on-.patch (kde#528936)
  * 0001-input-only-init-backends-after-InputRedirection.patch (kde#528824)
  New:  (MR !10326, backported to Plasma/6.8 in MR !10367).
  * 0001-drm-open-eacces-retry.patch
  New:  * 0001-backends-libinput-only-process-device-add-events-on-.patch 
(kde#528936)
  * 0001-input-only-init-backends-after-InputRedirection.patch (kde#528824)
----------(New E)----------

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

Other differences:
------------------
++++++ kwin6.spec ++++++
--- /var/tmp/diff_new_pack.9sgGZl/_old  2026-11-27 19:40:42.712992891 +0100
+++ /var/tmp/diff_new_pack.9sgGZl/_new  2026-11-27 19:40:42.715993016 +0100
@@ -39,6 +39,17 @@
 Source1:        
https://download.kde.org/stable/plasma/%{version}/%{rname}-%{version}.tar.xz.sig
 Source2:        plasma.keyring
 %endif
+# Fix the Plasma Wayland session on driverless hardware (no render node):
+# expose EACCES as a Session::Error and retry the DRM open on EBusy
+# or EAccess, so a transient logind TakeDevice failure does not lose
+# the render device.
+# https://invent.kde.org/plasma/kwin/-/merge_requests/10326
+# Backport to Plasma/6.8: 
https://invent.kde.org/plasma/kwin/-/merge_requests/10367
+Patch0:         0001-drm-open-eacces-retry.patch
+# PATCH-FIX-UPSTREAM
+Patch1:         0001-backends-libinput-only-process-device-add-events-on-.patch
+# PATCH-FIX-UPSTREAM
+Patch2:         0001-input-only-init-backends-after-InputRedirection.patch
 BuildRequires:  doxygen
 BuildRequires:  fdupes
 BuildRequires:  kf6-extra-cmake-modules >= %{kf6_version}

++++++ 0001-backends-libinput-only-process-device-add-events-on-.patch ++++++
>From 47f038220448a57e3b071b9d1d70c835e7387128 Mon Sep 17 00:00:00 2001
From: Xaver Hugl <[email protected]>
Date: Sat, 21 Nov 2026 02:00:06 +0100
Subject: [PATCH] backends/libinput: only process device add events on startup

Since things like switch state are only communicated through events and can't
be queried, we need to delay non-ADDED events until the rest of KWin is set up
and has created the appropriate input event filters.

BUG: 528936


(cherry picked from commit 9f867631fb33f114650d7ce7c152dff9bddc9e04)

Co-authored-by: Xaver Hugl <[email protected]>
---
 src/backends/libinput/connection.cpp | 48 ++++++++++++++++++----------
 src/backends/libinput/connection.h   |  2 ++
 2 files changed, 33 insertions(+), 17 deletions(-)

diff --git a/src/backends/libinput/connection.cpp 
b/src/backends/libinput/connection.cpp
index 4966e7ce17..ba9dcb5166 100644
--- a/src/backends/libinput/connection.cpp
+++ b/src/backends/libinput/connection.cpp
@@ -137,7 +137,16 @@ void Connection::setup()
     // NOTE We need the initial device list for the startup of other parts of 
KWin,
     // like tablet mode and output configuration
     QMetaObject::invokeMethod(this, &Connection::doSetup, 
Qt::BlockingQueuedConnection);
-    processEvents();
+    QMutexLocker locker(&m_mutex);
+    for (auto it = m_eventQueue.begin(); it != m_eventQueue.end();) {
+        auto &event = *it;
+        if (event->type() == LIBINPUT_EVENT_DEVICE_ADDED) {
+            addDevice(event->nativeDevice());
+            it = m_eventQueue.erase(it);
+        } else {
+            it++;
+        }
+    }
 }
 
 void Connection::doSetup()
@@ -269,22 +278,7 @@ void Connection::processEvents()
         m_eventQueue.pop_front();
         switch (event->type()) {
         case LIBINPUT_EVENT_DEVICE_ADDED: {
-            auto device = new Device(event->nativeDevice());
-            device->moveToThread(thread());
-            m_devices << device;
-
-            applyDeviceConfig(device);
-            applyScreenToDevice(device);
-
-            connect(device, &Device::outputNameChanged, this, [this, device] {
-                // If the output name changes from something to empty we need 
to
-                // re-run the assignment heuristic so that an output is 
assigned
-                if (device->outputName().isEmpty()) {
-                    applyScreenToDevice(device);
-                }
-            });
-
-            Q_EMIT deviceAdded(device);
+            addDevice(event->nativeDevice());
             break;
         }
         case LIBINPUT_EVENT_DEVICE_REMOVED: {
@@ -618,6 +612,26 @@ void Connection::processEvents()
     }
 }
 
+void Connection::addDevice(libinput_device *nativeDevice)
+{
+    auto device = new Device(nativeDevice);
+    device->moveToThread(thread());
+    m_devices << device;
+
+    applyDeviceConfig(device);
+    applyScreenToDevice(device);
+
+    connect(device, &Device::outputNameChanged, this, [this, device] {
+        // If the output name changes from something to empty we need to
+        // re-run the assignment heuristic so that an output is assigned
+        if (device->outputName().isEmpty()) {
+            applyScreenToDevice(device);
+        }
+    });
+
+    Q_EMIT deviceAdded(device);
+}
+
 void Connection::updateScreens()
 {
     QMutexLocker locker(&m_mutex);
diff --git a/src/backends/libinput/connection.h 
b/src/backends/libinput/connection.h
index 0eccd47358..0dde61f104 100644
--- a/src/backends/libinput/connection.h
+++ b/src/backends/libinput/connection.h
@@ -24,6 +24,7 @@ class QSocketNotifier;
 class QThread;
 
 struct libinput_tablet_tool;
+struct libinput_device;
 
 namespace KWin
 {
@@ -82,6 +83,7 @@ private:
     void applyScreenToDevice(Device *device);
     void doSetup();
     TabletTool *getOrCreateTool(libinput_tablet_tool *tool);
+    void addDevice(libinput_device *nativeDevice);
 
     std::unique_ptr<QSocketNotifier> m_notifier;
     QRecursiveMutex m_mutex;
-- 
2.56.0


++++++ 0001-drm-open-eacces-retry.patch ++++++
>From 125e5844a6cc5aaa9d253d473437b6aedd36fc4a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= <[email protected]>
Date: Thu, 5 Nov 2026 18:43:12 +0000
Subject: [PATCH] drm: expose EACCES as a Session::Error and retry DRM open on
 EBusy or EAccess

---
 src/backends/drm/drm_backend.cpp | 3 ++-
 src/core/session.cpp             | 2 ++
 src/core/session.h               | 1 +
 src/core/session_consolekit.cpp  | 3 +++
 src/core/session_logind.cpp      | 3 +++
 src/core/session_noop.cpp        | 2 ++
 6 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/src/backends/drm/drm_backend.cpp b/src/backends/drm/drm_backend.cpp
index 896c260..40a5910 100644
--- a/src/backends/drm/drm_backend.cpp
+++ b/src/backends/drm/drm_backend.cpp
@@ -61,7 +61,8 @@ public:
         timer.start();
         // Switching between sessions / drm masters seems to be racy in some 
situations.
         // Lacking a proper solution for that, retry opening the node for up 
to 5s.
-        while (!fd.has_value() && fd.error() == Session::Error::EBusy && 
timer.durationElapsed() < 5s) {
+        // The session may not be active yet either, which fails as EACCES, 
not EBusy.
+        while (!fd.has_value() && (fd.error() == Session::Error::EBusy || 
fd.error() == Session::Error::EAccess) && timer.durationElapsed() < 5s) {
             qCDebug(KWIN_DRM, "Retrying openRestricted(%s)", 
qPrintable(filePath));
             std::this_thread::sleep_for(100ms);
             fd = m_session->openRestricted(filePath);
diff --git a/src/core/session.cpp b/src/core/session.cpp
index 8038b5e..289a441 100644
--- a/src/core/session.cpp
+++ b/src/core/session.cpp
@@ -47,6 +47,8 @@ Session::Error Session::errorFromErrno()
 {
     if (errno == EBUSY) {
         return Error::EBusy;
+    } else if (errno == EACCES) {
+        return Error::EAccess;
     } else {
         return Error::Other;
     }
diff --git a/src/core/session.h b/src/core/session.h
index 377cc89..7e1bbf8 100644
--- a/src/core/session.h
+++ b/src/core/session.h
@@ -73,6 +73,7 @@ public:
 
     enum class Error {
         EBusy,
+        EAccess,
         Other,
     };
 
diff --git a/src/core/session_consolekit.cpp b/src/core/session_consolekit.cpp
index 5d0418a..140233c 100644
--- a/src/core/session_consolekit.cpp
+++ b/src/core/session_consolekit.cpp
@@ -162,6 +162,9 @@ std::expected<int, Session::Error> 
ConsoleKitSession::openRestricted(const QStri
                 qPrintable(fileName), qPrintable(reply.errorMessage()));
         if (reply.errorName() == "System.Error.EBUSY") {
             return std::unexpected(Error::EBusy);
+        } else if (reply.errorName() == "System.Error.EACCES"
+            || reply.errorName() == "org.freedesktop.DBus.Error.AccessDenied") 
{
+            return std::unexpected(Error::EAccess);
         } else {
             return std::unexpected(Error::Other);
         }
diff --git a/src/core/session_logind.cpp b/src/core/session_logind.cpp
index d9f664b..a9dd752 100644
--- a/src/core/session_logind.cpp
+++ b/src/core/session_logind.cpp
@@ -160,6 +160,9 @@ std::expected<int, Session::Error> 
LogindSession::openRestricted(const QString &
                   qPrintable(fileName), qPrintable(reply.errorMessage()));
         if (reply.errorName() == "System.Error.EBUSY") {
             return std::unexpected(Error::EBusy);
+        } else if (reply.errorName() == "System.Error.EACCES"
+            || reply.errorName() == "org.freedesktop.DBus.Error.AccessDenied") 
{
+            return std::unexpected(Error::EAccess);
         } else {
             return std::unexpected(Error::Other);
         }
diff --git a/src/core/session_noop.cpp b/src/core/session_noop.cpp
index 4ad66e1..3d21917 100644
--- a/src/core/session_noop.cpp
+++ b/src/core/session_noop.cpp
@@ -49,6 +49,8 @@ std::expected<int, Session::Error> 
NoopSession::openRestricted(const QString &fi
     } else {
         if (errno == EBUSY) {
             return std::unexpected(Error::EBusy);
+        } else if (errno == EACCES) {
+            return std::unexpected(Error::EAccess);
         } else {
             return std::unexpected(Error::Other);
         }
-- 
2.56.0


++++++ 0001-input-only-init-backends-after-InputRedirection.patch ++++++
>From 19404161bc367b87b794361915b85a14c034ec63 Mon Sep 17 00:00:00 2001
From: Xaver Hugl <[email protected]>
Date: Tue, 17 Nov 2026 10:37:29 +0100
Subject: [PATCH] input: only init backends after InputRedirection

And more importantly, after the input redirection global has been set.
Doing it in the constructor means that input backends potentially sending
events during their initialization, where code may access the input direction
and crash if it's not a valid pointer yet.

This should fix 
https://crash-reports.kde.org/organizations/kde/share/issue/5b82c563178f416d9756b730bb226735/

BUG: 528824


(cherry picked from commit a96ceac71f3948b165e152dfc78aa964677e20aa)

Co-authored-by: Xaver Hugl <[email protected]>
---
 src/input.cpp | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/input.cpp b/src/input.cpp
index 327e713bc3..76e082954a 100644
--- a/src/input.cpp
+++ b/src/input.cpp
@@ -2935,8 +2935,6 @@ InputRedirection::InputRedirection(QObject *parent)
     , m_shortcuts(new GlobalShortcutsManager(this))
 #endif
 {
-    setupInputBackends();
-
     connect(kwinApp(), &Application::workspaceCreated, this, 
&InputRedirection::setupWorkspace);
 }
 
@@ -2983,6 +2981,7 @@ void InputRedirection::init()
 #if KWIN_BUILD_GLOBALSHORTCUTS
     m_shortcuts->init();
 #endif
+    setupInputBackends();
 }
 
 void InputRedirection::setupWorkspace()
-- 
2.56.0

Reply via email to