gdk window obscured events don't always happen
|Reported by:||dsd||Owned by:||erikos|
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.
Change History (17)
comment:9 Changed 6 years ago by dsd
- Summary changed from gdk window obscured events no longer happen to gdk window obscured events don't always happen
- Version changed from 0.90.x to 0.92.x