-
Notifications
You must be signed in to change notification settings - Fork 940
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable/Disable screensaver toggle #616
Comments
Is there any reason this can't be implemented outside of Winit? My gut feeling is to close this as out of scope. |
this should be closed as out of scope. |
Indeed, this is out of scope of Winit, and just from a quick search I found the (If for some reason parts of this cannot be cleanly implemented outside of Winit, then feel free to ask, we're open to adding extension points to allow doing so). |
It's not, see #3351 the reasoning is for apps to indicate that they show something that doesn't require user input, like media players. |
Anyway, I'll keep the more recent issue opened since it lists all the APIs which should be used to handle that. |
I need a method on the window to disable/enable the screensaver.
When the window is closed the screensaver should be automatically reset to its previous state.
From memory resetting the screensaver state is normally handled by the os screensaver toggling api which takes a handle to the window and automatically resets when the window is closed closed.
I am somewhat familiar with the dolphin implementation of this https://github.com/dolphin-emu/dolphin/blob/master/Source/Core/UICommon/UICommon.cpp#L365 and am happy to implement it for winit some time (windows + linux only), although I wont be free to do so in a long while, so I thought I'd post here in case anyone wanted to pick this up.
The text was updated successfully, but these errors were encountered: