[gnome-shell] messageTray: Don't allow opening while entering/leaving the overview
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] messageTray: Don't allow opening while entering/leaving the overview
- Date: Mon, 18 Feb 2013 19:44:18 +0000 (UTC)
commit ee62863759a212caccba5de29dcea5d90baeb7ff
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Sun Feb 17 14:26:04 2013 -0500
messageTray: Don't allow opening while entering/leaving the overview
The complex overview transition code means that there's no easy
way to handle with this right now. Blocking the message tray
while the overview is animating seems like the correct thing to do.
https://bugzilla.gnome.org/show_bug.cgi?id=694038
js/ui/messageTray.js | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js
index 16064eb..eb63266 100644
--- a/js/ui/messageTray.js
+++ b/js/ui/messageTray.js
@@ -2031,18 +2031,25 @@ const MessageTray = new Lang.Class({
},
openTray: function() {
+ if (Main.overview.animationInProgress)
+ return;
+
this._traySummoned = true;
this._updateState();
},
toggle: function() {
+ if (Main.overview.animationInProgress)
+ return false;
+
this._traySummoned = !this._traySummoned;
this._updateState();
+ return true;
},
toggleAndNavigate: function() {
- this.toggle();
- this._summary.navigate_focus(null, Gtk.DirectionType.TAB_FORWARD, false);
+ if (this.toggle())
+ this._summary.navigate_focus(null, Gtk.DirectionType.TAB_FORWARD, false);
},
hide: function() {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]