How Do I Detect If An Application Is Running In Fullscreen Mode?
Question, the short version:
I want to be able to detect if any X application is running in "fullscreen mode". Not if the window is maximized, but if the application is overriding/bypassing the window manager. Like, for example, a game or a media player in fullscreen mode.
Why do I want to do this?
I hate it when I'm watching a movie on the computer and the screensaver kicks in and I have to either futz with the mouse/keyboard or kill the screensaver engine. I'd rather run a script periodically to check if certain applications are running in fullscreen mode, and if they are, kill the screensaver engine until the programs are no longer running in fullscreen mode.
Would this be a function of X or a function of the windowing manager?
Any input would be appreciated.
|