From 4e18357902e39eebb00f0f33dad7e2becc668333 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Fri, 14 Sep 2007 13:58:59 +0200 Subject: [PATCH] Ignore double desktop switching notifications. --- NEWS | 1 + shell/model/shellmodel.py | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 666533e2..8826639f 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,4 @@ +* #3045 Fix clipboard palettes behavior. (marco) * #2739 Make frame show on corners also after showing palettes. (marco) Snapshot 47f473189e diff --git a/shell/model/shellmodel.py b/shell/model/shellmodel.py index 532d0c2a..5462e27f 100644 --- a/shell/model/shellmodel.py +++ b/shell/model/shellmodel.py @@ -52,6 +52,7 @@ class ShellModel(gobject.GObject): self._current_activity = None self._state = self.STATE_RUNNING self._zoom_level = self.ZOOM_HOME + self._showing_desktop = True self._pservice = presenceservice.get_instance() @@ -105,4 +106,7 @@ class ShellModel(gobject.GObject): return self._devices def _showing_desktop_changed_cb(self, screen): - self.notify('zoom-level') + showing_desktop = self._screen.get_showing_desktop() + if self._showing_desktop != showing_desktop: + self._showing_desktop = showing_desktop + self.notify('zoom-level')