[sugar] Notify active event firing

Arjun Sarwal arjun at laptop.org
Sun Nov 4 01:36:37 EST 2007


Thanks, Tomeu.

I need to turn off some drawing code when the user switches to Home View
(why waste so much of CPU power in the meanwhile)
How can I do that ?

thanks,
Arjun

On 10/30/07, Tomeu Vizoso <tomeu at tomeuvizoso.net> wrote:
>
> Hi Arjun,
>
> On Tue, 2007-10-30 at 02:15 +0530, Arjun Sarwal wrote:
> > (have posted to devel but realized this query is more suitable for
> > posting on sugar)
> >
> > Say I have Activity A and I then go to Home View and open Activity B.
> > At which point of opening of Activity B, does Activity A get to know
> > that it is a background activity (inactive Activity) ?
> > Is it immediately upon clicking the icon of Activity B ?
>
> The 'active' property in Activity A will be set to False when the window
> of the Activity B opens (when the window manager tells the sugar shell
> than that window has popped up).
>
> Tomeu
>
>


-- 
Arjun Sarwal <arjun at laptop.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.laptop.org/pipermail/sugar/attachments/20071104/6965ecf2/attachment.htm 


More information about the Sugar mailing list