From d06aa9a555495d48a8e91d1222cdce4e5a947245 Mon Sep 17 00:00:00 2001 From: Gary Martin Date: Thu, 14 Oct 2010 00:56:34 +0000 Subject: Fixed special case in Sugar 0.82 and 0.84 where idle events are not added by default. --- diff --git a/activity.py b/activity.py index e9e847a..30a21d0 100644 --- a/activity.py +++ b/activity.py @@ -44,6 +44,8 @@ class PhysicsActivity(olpcgames.PyGameActivity): def __init__(self, handle): super(PhysicsActivity, self).__init__(handle) self.metadata['mime_type'] = 'application/x-physics-activity' + self.add_events(gtk.gdk.ALL_EVENTS_MASK | + gtk.gdk.VISIBILITY_NOTIFY_MASK) self.connect('visibility-notify-event', self._focus_event) self.connect('window-state-event', self._window_event) -- cgit v0.9.1