My application is a sensor daemon supplying data to application, e.g. accelerometer data. If an application connects to my daemon, the daemon will poll driver in a high sample rate which obviously kills power. so if I could know which application is viewable to user, I could stop polling since sensor awareness application is running at background My thought is to write a context provider of window manager to provide such feature.
Thank you your suggestion. I will take a look of Libwnck first. > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of Jussi Kukkonen > Sent: Friday, March 26, 2010 5:00 PM > To: [email protected] > Subject: Re: [MeeGo-dev] How to get screen active application in Meego > > Zhang, Xing Z wrote: > > Hi all: Do we have method to get known which application is active on > > screen now? I filter properties of contextkit, Session.State makes > > sense to me. Is there a more detailed info tells me which application > > is in fullscreen mode (by pid or others)? > > Libwnck may be worth a look, but I don't know if it's available in all > versions... If you explain what you want to achieve (and in what > context), you might get better suggestions. > > > HTH, > Jussi > _______________________________________________ > MeeGo-dev mailing list > [email protected] > http://lists.meego.com/listinfo/meego-dev _______________________________________________ MeeGo-dev mailing list [email protected] http://lists.meego.com/listinfo/meego-dev
