Preventing screensaver when playing movie?

Scott J. Harmon harmon at ksu.edu
Wed Mar 5 14:40:14 PST 2008


mcnichol at austin.ibm.com wrote:
>> From: "Scott J. Harmon" <harmon at ksu.edu>
>>
>> I don't know much about the internals of the X server, but doesn't it 
>> need to keep track of clients so that when they are killed memory and 
>> other resources are released?  Why would the screensaver suspend be any 
>> different.  IMO, the app should call XScreenSaverSuspend(True) *once* 
>> (not 30 frames per second).  And then either call 
>> XScreenSaverSuspend(False) when it is done, or simply exit and let X 
>> clean up.
> 
> Ok, so what happens when 2 different clients use XScreenSaverSuspend(True).
> What happens when one of them terminates.... ??
> 
> Dan


Nothing. (implementation detail---possibly a reference counter in the 
server is decremented and tested).

-- 
Scott J. Harmon
PhD Candidate
Kansas State University

"Computer Science is no more about computers than astronomy is about 
telescopes." - Edsger Dijkstra



More information about the xorg mailing list