Ignore double desktop switching notifications.
This commit is contained in:
parent
b626f628eb
commit
4e18357902
1
NEWS
1
NEWS
@ -1,3 +1,4 @@
|
|||||||
|
* #3045 Fix clipboard palettes behavior. (marco)
|
||||||
* #2739 Make frame show on corners also after showing palettes. (marco)
|
* #2739 Make frame show on corners also after showing palettes. (marco)
|
||||||
|
|
||||||
Snapshot 47f473189e
|
Snapshot 47f473189e
|
||||||
|
@ -52,6 +52,7 @@ class ShellModel(gobject.GObject):
|
|||||||
self._current_activity = None
|
self._current_activity = None
|
||||||
self._state = self.STATE_RUNNING
|
self._state = self.STATE_RUNNING
|
||||||
self._zoom_level = self.ZOOM_HOME
|
self._zoom_level = self.ZOOM_HOME
|
||||||
|
self._showing_desktop = True
|
||||||
|
|
||||||
self._pservice = presenceservice.get_instance()
|
self._pservice = presenceservice.get_instance()
|
||||||
|
|
||||||
@ -105,4 +106,7 @@ class ShellModel(gobject.GObject):
|
|||||||
return self._devices
|
return self._devices
|
||||||
|
|
||||||
def _showing_desktop_changed_cb(self, screen):
|
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')
|
||||||
|
Loading…
Reference in New Issue
Block a user