Global shortcuts on Linux: release held shortcuts on screen lock and suspend #940

Open
opened 2026-11-19 07:46:42 +00:00 by charles · 0 comments
Owner

Desktop shell spec §3 row 76, Review Focus 2. The original releases held shortcuts on suspend, lock and the portal's screen lock (D/GlobalShortcutsIpc.ts:156-170, N/linux-portals/src/session_monitor.rs). In the native client only the Windows hook sends SessionEvent::{Locked, Suspending} (crates/fluxer-platform/src/shortcuts/hook_windows.rs); on Linux nothing watches logind's PrepareForSleep / session Lock or the portal's screen lock for the XRecord and portal back ends (direct input stops while its logind session is inactive, Shell 29).

Effect: a push-to-talk held when the screen locks or the machine suspends on X11 or Wayland (portal) can stay held until the next release event.

To do: a Linux session monitor in fluxer-platform::shortcuts (logind PrepareForSleep and Lock/LockedHint, the screensaver's ActiveChanged) feeding ShortcutsOutput::Session, with a private-bus test.

Seen on shell at 7e1ad2209 (Shell 43 parity list).

Desktop shell spec §3 row 76, Review Focus 2. The original releases held shortcuts on suspend, lock and the portal's screen lock (`D/GlobalShortcutsIpc.ts:156-170`, `N/linux-portals/src/session_monitor.rs`). In the native client only the Windows hook sends `SessionEvent::{Locked, Suspending}` (`crates/fluxer-platform/src/shortcuts/hook_windows.rs`); on Linux nothing watches logind's `PrepareForSleep` / session `Lock` or the portal's screen lock for the XRecord and portal back ends (direct input stops while its logind session is inactive, Shell 29). Effect: a push-to-talk held when the screen locks or the machine suspends on X11 or Wayland (portal) can stay held until the next release event. To do: a Linux session monitor in `fluxer-platform::shortcuts` (logind `PrepareForSleep` and `Lock`/`LockedHint`, the screensaver's `ActiveChanged`) feeding `ShortcutsOutput::Session`, with a private-bus test. Seen on shell at 7e1ad2209 (Shell 43 parity list).
charles added this to the Desktop shell milestone 2026-11-19 07:46:42 +00:00
charles referenced this issue from a commit 2026-11-19 08:14:39 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
charles/fluxer-native#940
No description provided.