On Fri, Sep 10, 2010 at 10:15, James Cameron <qu...@laptop.org> wrote: > On Fri, Sep 10, 2010 at 10:02:22AM +0200, Tomeu Vizoso wrote: >> On Wed, Sep 8, 2010 at 01:39, James Cameron <qu...@laptop.org> wrote: >> > On Wed, Sep 08, 2010 at 08:10:27AM +0530, Anurag Chowdhury wrote: >> >> Shutdown (and Logout) menu items should activate the buzzy cursor (or >> >> provide some other visual feedback, perhaps dimming/locking the UI >> >> from use). >> > >> > On what platform do you see a delay between releasing the mouse button >> > and the X server terminating, and what amount of delay occurs? >> >> There's some info from Gary in the original bug report: >> http://bugs.sugarlabs.org/ticket/2151 > > Ah, right. I see from the bug report that the problem only occurs with > many activities open. That wasn't mentioned in the patch commit > message.
Yup, have spent some minutes on this and this approach indeed should work. It should be easily reproducible anywhere by inserting a "import time; time.sleep(10)" as the first line in an activity's write_file method. The shell will wait until all activities have saved their state before actually shutting down. As James said, the cursor needs to be set in the appropriate window, in this case it's the desktop window which is accessible by: from jarabe.desktop import homewindow homewindow.get_instance() Seems to work fine here. Regards, Tomeu > -- > James Cameron > http://quozl.linux.org.au/ > _______________________________________________ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel