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
This commit is contained in:
parent
4a3a61bea1
commit
ee62863759
@ -2031,17 +2031,24 @@ 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();
|
||||
if (this.toggle())
|
||||
this._summary.navigate_focus(null, Gtk.DirectionType.TAB_FORWARD, false);
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user