[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 13:48:34 +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/e0cf8bf311a7baad893 |/commit/b4d3f6cd01edd530203
                   |3797ec2fca0b94eb7d3d5       |0f2b8292ed82315069f27

--- Comment #8 from David Redondo <[email protected]> ---
Git commit b4d3f6cd01edd5302030f2b8292ed82315069f27 by David Redondo.
Committed on 04/08/2026 at 13:41.
Pushed by davidre into branch 'Plasma/6.7'.

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]>

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/b4d3f6cd01edd5302030f2b8292ed82315069f27

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