Ticket #2570 (assigned defect)
gdk window obscured events don't always happen
| Reported by: | dsd | Owned by: | erikos |
|---|---|---|---|
| Priority: | Unspecified by Maintainer | Milestone: | Unspecified by Release Team |
| Component: | sugar | Version: | 0.92.x |
| Severity: | Unspecified | Keywords: | 11.3.0, olpc-test |
| Cc: | manuq | Distribution/OS: | Unspecified |
| Bug Status: | Unconfirmed |
Description
Somewhere after Sugar-0.84 (currently reproduced on 0.90.3), activities stopped receiving gtk.gdk.VISIBILITY_FULLY_OBSCURED events on their Activity objects when another activity is switched to or when the user changes to home/group/neighbourhood view.
test case is something like:
self.add_events(gtk.gdk.VISIBILITY_NOTIFY_MASK)
self.connect("visibility-notify-event", self._visibility_changed)
def _visibility_changed(self, widget, event):
print "VISIBILITY", event.state
On 0.84, you got a VISIBILITY_FULLY_OBSCURED event when switching to another view or activity. On 0.90, nothing.
Record needs this to switch off the camera/microphone when the activity is no longer active.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

