Fix for removing activity from donut when not the active and the last one

This commit is contained in:
Simon Schampijer 2007-09-07 17:39:42 +02:00
parent 204661329b
commit 5766522f53

View File

@ -201,7 +201,9 @@ class HomeModel(gobject.GObject):
def _remove_activity(self, home_activity):
if home_activity == self._active_activity:
self._set_active_activity(None)
# Figure out the new _pending_activity.
if home_activity == self._pending_activity:
# Figure out the new _pending_activity
windows = wnck.screen_get_default().get_windows_stacked()
windows.reverse()
for window in windows: