#2239 NORM Trial-3: need notify callback when switching from activity to home

Zarro Boogs per Child bugtracker at laptop.org
Fri Aug 10 05:39:26 EDT 2007


#2239: need notify callback when switching from activity to home
--------------------------+-------------------------------------------------
  Reporter:  erikb        |       Owner:  marco  
      Type:  enhancement  |      Status:  closed 
  Priority:  normal       |   Milestone:  Trial-3
 Component:  sugar        |     Version:         
Resolution:  wontfix      |    Keywords:         
  Verified:  0            |  
--------------------------+-------------------------------------------------
Changes (by marco):

  * status:  new => closed
  * resolution:  => wontfix

Comment:

 I don't think Sugar should provide API for this. I think in general
 activities should just use the active property to disable sound etc.

 If active doesn't work for the camera activity then it's probably a side
 case. And as jg suggest you can use wm hints to figure this out. We ship
 python bindings for wnck on the images which provide easy access to those.

 I haven't looked in it carefully but a way to do it would be to iterate
 the windows stack, filter out not NORMAL windows, and verify if the
 activity window is at the top of the stack (by comparing xid). Obviously
 you will also need to listen for windows stack changes.

-- 
Ticket URL: <http://dev.laptop.org/ticket/2239#comment:3>
One Laptop Per Child <http://laptop.org/>



More information about the Bugs mailing list