[SDL] SDL tampers with display power settings on the sly
Erik
esigra at gmail.com
Tue Feb 26 14:51:48 PST 2008
Sam Lantinga skrev:
>> So the solution would be something like this: Each time the application
>> updates the display with a new animation frame, it marks that update
>> with a special flag, indicating that this is the kind of thing that the
>> user may be watching even though he has not interacted with the system
>> for a while. The X server then resets the screensaver countdown.
>>
>
> That's a great idea. :)
> Is there a way to pretend to the X server that there has been user input?
>
I just found out that mplayer discovered the correct way to handle this.
"Remove most of the messy screensaver code in favour of only
XResetScreenSaver":
http://svn.mplayerhq.hu/mplayer?view=rev&revision=25637
More information about the SDL
mailing list