Keep-awake: release the display inhibitor for watching and cameras while the window is hidden #916

Open
opened 2026-11-18 21:00:16 +00:00 by charles · 0 comments
Owner

Follow-up of #913 (PR #915).

In the original, the display-sleep blocker for the own screen share is held regardless of the window, but the wake lock that keeps the display awake while watching a stream or showing a camera is Chromium's own, which is held only while the video is visible. PR #915 holds the inhibitor for watching and cameras unconditionally, because textchat has no window-visibility state in the core.

Once the desktop shell lands (shell.window.visible, close to tray), fluxer_core::selectors::keep_awake should drop the Watching and Camera reasons while the window is hidden (minimised or closed to tray), keeping Sharing. Add the rows to the selector's table test and a runtime test (hide the window while watching: released; show it: re-acquired once).

Seen on commit of PR #915 (branch fix-913-keep-screen-awake).

Follow-up of #913 (PR #915). In the original, the display-sleep blocker for the own screen share is held regardless of the window, but the wake lock that keeps the display awake while *watching* a stream or showing a camera is Chromium's own, which is held only while the video is visible. PR #915 holds the inhibitor for watching and cameras unconditionally, because `textchat` has no window-visibility state in the core. Once the desktop shell lands (`shell.window.visible`, close to tray), `fluxer_core::selectors::keep_awake` should drop the Watching and Camera reasons while the window is hidden (minimised or closed to tray), keeping Sharing. Add the rows to the selector's table test and a runtime test (hide the window while watching: released; show it: re-acquired once). Seen on commit of PR #915 (branch fix-913-keep-screen-awake).
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#916
No description provided.