From 429a7ff970cdc0aa32991ff8cf6e17badc30417d Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Tue, 9 Jan 2007 17:55:35 +0100 Subject: [PATCH] Ensure to emit an activity changed signal when closing the last window. Fix #690. --- shell/model/homemodel.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/shell/model/homemodel.py b/shell/model/homemodel.py index b1b4c8f7..cbc06a96 100644 --- a/shell/model/homemodel.py +++ b/shell/model/homemodel.py @@ -71,6 +71,8 @@ class HomeModel(gobject.GObject): def _window_closed_cb(self, screen, window): if window.get_window_type() == wnck.WINDOW_NORMAL: self._remove_activity(window.get_xid()) + if not self._activities: + self.emit('active-activity-changed', None) def _get_activity_by_xid(self, xid): for act in self._activities.values():