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?
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?
perhaps this would be better placed in the "linux programming" forum. C itself has no concept of a window.
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 ]
Originally Posted by Jeff Henager
Are you saying that the window system changes the scheduling priority of processes based on focus? I don't think so.Originally Posted by Jaqui