We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 2218 - Screen saver defaults to enabled in SDL2.
Summary: Screen saver defaults to enabled in SDL2.
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: HG 2.0
Hardware: All All
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-07 15:09 UTC by Ryan C. Gordon
Modified: 2014-02-28 03:24 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan C. Gordon 2013-11-07 15:09:03 UTC
In SDL 1.2, we defaulted to disabling the screen saver while there was an SDL Window on the screen, and there was a environment variable hack to make SDL _not_ disable the screen saver.

The gist was most things using SDL are video games or media players, and they don't want the screensaver to interfere. The rare exception that wants to work like a normal desktop app, like TuxPaint, could explicitly ask SDL to allow the screen saver.

In 2.0, we have a formal API for the screen saver, but it defaults to allowing it to function.

I think this should work like 1.2 did. Otherwise, games that are interacted with through joysticks exclusively, or video players that we watch without touching, will get blocked by the screen saver popping up every few minutes, because the default behavior of SDL has changed to something unexpected.

--ryan.
Comment 1 Sam Lantinga 2014-02-23 03:26:56 UTC
Yes please!
Comment 2 Ryan C. Gordon 2014-02-28 03:24:44 UTC
Fixed in https://hg.libsdl.org/SDL/rev/1ed54c57d6c7

--ryan.