Getting window positions (linux)

This is a discussion on Getting window positions (linux) within the C Programming forums, part of the General Programming Boards category; I'm wanting to have my application pause (sleep) if another application is in front of it. How can I determine ...

  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
    cwr
    cwr is offline
    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
    cwr
    cwr is offline
    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, 04: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, 11: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, 06:55 PM
  5. How to change window style at runtime?
    By Mr. Bitmap in forum Windows Programming
    Replies: 5
    Last Post: 06-09-2002, 05:49 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21