[xdg-desktop-portal-kde] [Bug 523515] InputCapture session not torn down when the portal frontend crashes -> all keyboard/pointer input stays diverted (desktop input freeze)

"David Redondo" <[email protected]> Tue, 04 Aug 2026 14:25:29 +0000
Newsgroups gmane.comp.kde.devel.bugs
Message-ID <[email protected]/>
https://bugs.kde.org/show_bug.cgi?id=523515

David Redondo <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|https://invent.kde.org/plas |https://invent.kde.org/plas
                   |ma/xdg-desktop-portal-kde/- |ma/xdg-desktop-portal-kde/-
                   |/commit/b4d3f6cd01edd530203 |/commit/867386a6e43d9b63fd2
                   |0f2b8292ed82315069f27       |3fca27d6f3f0b43a740b9

--- Comment #9 from David Redondo <[email protected]> ---
Git commit 867386a6e43d9b63fd23fca27d6f3f0b43a740b9 by David Redondo.
Committed on 04/08/2026 at 14:22.
Pushed by davidre into branch 'Plasma/6.6'.

session: release all sessions when the portal frontend disappears

Every session in this backend is created on behalf of the single portal
frontend (org.freedesktop.portal.Desktop). If it drops off the bus without
cleanly closing its sessions - for example if it crashes - nothing tears them
down. For an InputCapture session that means KWin keeps diverting all pointer
and keyboard input into the now ownerless EIS channel, so the desktop renders
normally but accepts no input until KWin is killed.

Watch the frontend centrally and close every session if it disappears, which
drives the existing Session::closed teardown for each. This covers all session
types rather than only input capture.


(cherry picked from commit e0cf8bf311a7baad8933797ec2fca0b94eb7d3d5)

Co-authored-by: Marcus Renheim <[email protected]>

(cherry picked from commit b4d3f6cd01edd5302030f2b8292ed82315069f27)

Co-authored-by: David Redondo <[email protected]>

M  +10   -0    src/desktopportal.cpp
M  +2    -0    src/desktopportal.h
M  +13   -0    src/session.cpp
M  +1    -0    src/session.h

https://invent.kde.org/plasma/xdg-desktop-portal-kde/-/commit/867386a6e43d9b63fd23fca27d6f3f0b43a740b9

-- 
You are receiving this mail because:
You are watching all bug changes.