#5937 NORM Never A: Race when switching zoom level while frame is being hidden

Zarro Boogs per Child bugtracker at laptop.org
Wed Jan 9 16:50:36 EST 2008


#5937: Race when switching zoom level while frame is being hidden
---------------------+------------------------------------------------------
 Reporter:  dsd      |       Owner:  marco         
     Type:  defect   |      Status:  new           
 Priority:  normal   |   Milestone:  Never Assigned
Component:  sugar    |     Version:                
 Keywords:  review?  |    Verified:  0             
 Blocking:           |   Blockedby:                
---------------------+------------------------------------------------------
 If you start Sugar, press F2, wait a bit, press F3, then you end up at the
 home screen with the frame showing.

 If you then press F2, and immediately then press F3 while the frame is
 still fading away, you are returned back to the home screen but the frame
 is not being shown.

 This is because when returning to the home screen, frame.show() thinks the
 frame is already visible (this is true -- it is partially visible) and
 therefore it has nothing to do.

 Following on from #5911 and #5750, here is a patch which avoids this race
 by detecting the fact that the frame is currently being hidden, so
 frame.show() does have to run.

 Even though it's quite tidy, this is a bit of a hack, if you have
 suggestions for other ways to do this I could take another stab at it
 (although I probably won't have much time to do so after Thursday).

-- 
Ticket URL: <http://dev.laptop.org/ticket/5937>
One Laptop Per Child <http://dev.laptop.org>
OLPC bug tracking system



More information about the Bugs mailing list