LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 08-21-2009, 09:15 PM   #1
kevinbenko
Member
 
Registered: Jun 2005
Location: Fargo, North Dakota
Distribution: Debian Stable {Probably forever}
Posts: 628

Rep: Reputation: 174Reputation: 174
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.
 
Old 08-22-2009, 01:48 PM   #2
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Quote:
Originally Posted by kevinbenko View Post
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.
I regularly use kaffeine for this purpose (viewing films full-screen). It has the ability to prevent the screensaver from activating while you are watching a film. It is clever enough to allow reactivate the screensaver if you've paused the film. You might look into how they do it. It is clear that what you want can be done.
cheers,
jdk
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't Get Out Of TightVNC Fullscreen Mode alkos333 Slackware 5 02-09-2010 01:06 PM
Running application in kernel mode as device driver! hank007 Linux - Newbie 1 05-29-2009 07:21 AM
Border-less (fullscreen) application under X - HowTo?? -reverb- Programming 5 08-01-2007 02:47 PM
Fullscreen-ing an X Application phrontist Linux - General 3 10-05-2004 07:54 PM
Fullscreen Application Problems InSane103 Linux - Software 8 08-17-2004 10:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 10:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration