mchehab / kaffeine

Kaffeine alternate development tree
Other
1 stars 0 forks source link

Kaffeine inhibits xscreensaver #1

Open Eggburt opened 4 years ago

Eggburt commented 4 years ago

I'm running Version 2.0.15, under MX linux 19 AHS, and it seems to inhibit the running of XScreensaver. I can understand the program doing this while in full screen mode but not otherwise. Is it possible to have some sort of compromise with a toggle to turn this on or off? Another related issue is that XScreensaver is still inhibited even after closing Kaffeine, although this seems to be inconsistent.

mchehab commented 3 years ago

The actual logic is at src/mediawidget.cpp, at MediaWidget::checkScreenSaver().

It should be disabling the screen saver if:

The above conditions are re-checked on every 50 seconds.

It doesn't matter if the someone is watching a media in full screen mode or not: Kaffeine should prevent the screensaver to happen at media play time.

Another related issue is that XScreensaver is still inhibited even after closing Kaffeine, although this seems to be inconsistent.

Yeah, this may happen with the current code. Added a patch that should fix it:

https://github.com/mchehab/kaffeine/commit/76710f35e07f9026eda3229d46dc107bb801d7e8