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.
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.