Don't turn off screen if app is in "Full-Screen"
marbetschar opened this issue · 2 comments
Prerequisites
- I have searched open and closed issues for duplicates.
Describe the bug
The display turns off after the configured inactivity timeout, ignoring the fact an app runs in full screen mode (e.g. a browser showing a movie, or a Skype video call).
To Reproduce
- Go to
System Settings > Power
and setTurn off display when inactive for
to5 min
- Go to YouTube in Firefox and play Cantina Band 10 Hours
- Activate full screen for the YouTube video
- Remove your hands from Mouse and Keyboard
- Start your 5min-Handsfree-Dance
- ... eventually the display turns off, but the Cantina Band is still playing it's awesome song
Expected behavior
Don`t disable the display while an app is displaying content in "Full Screen" (= without any window manager header bar)
I'm experiencing display turn offs caused by "inactivity" in a lot of apps - basically for everything which enables me to either watch a movie or do a video call:
- Firefox
- Skype
- Microsoft Teams
- Zoom
- ...
Any chance we can somehow detect "real inactivity" instead of just "not moving cursor"? For example: If the focused app is in full screen and generates audio, the display timeout should be ignored.
From Slack:
see https://valadoc.org/gtk+-3.0/Gtk.Application.inhibit.html
but this is per-app, of course
and shouldn't be tied to fullscreen either
instead, browser should call it when starting to play a video, etc
That said, this is an app implementation issue which needs to be fixed per app.