Thread: Getting window positions (linux)

  1. #1
    Registered User
    Join Date
    Jan 2006
    Posts
    62

    Getting window positions (linux)

    I'm wanting to have my application pause (sleep) if another application is in front of it. How can I determine if a window is at the back or front?

  2. #2
    Registered Luser cwr's Avatar
    Join Date
    Jul 2005
    Location
    Sydney, Australia
    Posts
    869
    perhaps this would be better placed in the "linux programming" forum. C itself has no concept of a window.

  3. #3
    Registered User Jaqui's Avatar
    Join Date
    Feb 2005
    Posts
    416
    it's an xserver function if using a windowed app.
    and by default non focussed applications do sleep.
    [ partially ]

    the exact means to make it sleep fully are ui specific.. gnome is different than kde. [ example as there are far more guis than just those 2 ]
    Quote Originally Posted by Jeff Henager
    If the average user can put a CD in and boot the system and follow the prompts, he can install and use Linux. If he can't do that simple task, he doesn't need to be around technology.

  4. #4
    Registered Luser cwr's Avatar
    Join Date
    Jul 2005
    Location
    Sydney, Australia
    Posts
    869
    Quote Originally Posted by Jaqui
    it's an xserver function if using a windowed app.
    and by default non focussed applications do sleep.
    [ partially ]
    Are you saying that the window system changes the scheduling priority of processes based on focus? I don't think so.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Adding buttons, edit boxes, etc to the window
    By rainmanddw in forum Windows Programming
    Replies: 1
    Last Post: 04-10-2006, 03:07 PM
  2. Button handler
    By Nephiroth in forum Windows Programming
    Replies: 8
    Last Post: 03-12-2006, 06:23 AM
  3. Pong is completed!!!
    By Shamino in forum Game Programming
    Replies: 11
    Last Post: 05-26-2005, 10:50 AM
  4. Adding colour & bmps to a Win 32 Window??
    By carey_sizer in forum Windows Programming
    Replies: 4
    Last Post: 09-04-2004, 05:55 PM
  5. How to change window style at runtime?
    By Mr. Bitmap in forum Windows Programming
    Replies: 5
    Last Post: 06-09-2002, 04:49 PM