messageTray: Clean up commented code a bit
Since we changed the grabHelper.grab call to be in a conditional, it's been a little clear what the comment has been referring to. https://bugzilla.gnome.org/show_bug.cgi?id=684458
This commit is contained in:
parent
098d805a8b
commit
7df7cd01eb
@ -2031,8 +2031,10 @@ const MessageTray = new Lang.Class({
|
|||||||
// Don't actually take a modal grab in the overview.
|
// Don't actually take a modal grab in the overview.
|
||||||
// Just add something to the grab stack that we can
|
// Just add something to the grab stack that we can
|
||||||
// pop later.
|
// pop later.
|
||||||
|
let modal = !this._overviewVisible;
|
||||||
|
|
||||||
if (!this._grabHelper.grab({ actor: this.actor,
|
if (!this._grabHelper.grab({ actor: this.actor,
|
||||||
modal: !this._overviewVisible,
|
modal: modal,
|
||||||
onUngrab: Lang.bind(this, this._escapeTray) })) {
|
onUngrab: Lang.bind(this, this._escapeTray) })) {
|
||||||
this._traySummoned = false;
|
this._traySummoned = false;
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user