Revert "messageTray: Don't show the context-menu when the tray isn't open"
This reverts commit 1bce210c51
.
This commit is contained in:
parent
8c32102e99
commit
811ee1d989
@ -1722,9 +1722,6 @@ const MessageTray = new Lang.Class({
|
|||||||
this.actor.add_action(clickAction);
|
this.actor.add_action(clickAction);
|
||||||
|
|
||||||
clickAction.connect('clicked', Lang.bind(this, function(action) {
|
clickAction.connect('clicked', Lang.bind(this, function(action) {
|
||||||
if (this._trayState != State.SHOWN)
|
|
||||||
return;
|
|
||||||
|
|
||||||
let button = action.get_button();
|
let button = action.get_button();
|
||||||
if (button == 3)
|
if (button == 3)
|
||||||
this._openContextMenu();
|
this._openContextMenu();
|
||||||
@ -1735,7 +1732,7 @@ const MessageTray = new Lang.Class({
|
|||||||
clickAction.connect('long-press', Lang.bind(this, function(action, actor, state) {
|
clickAction.connect('long-press', Lang.bind(this, function(action, actor, state) {
|
||||||
switch (state) {
|
switch (state) {
|
||||||
case Clutter.LongPressState.QUERY:
|
case Clutter.LongPressState.QUERY:
|
||||||
return this._trayState == State.SHOWN;
|
return true;
|
||||||
case Clutter.LongPressState.ACTIVATE:
|
case Clutter.LongPressState.ACTIVATE:
|
||||||
this._openContextMenu();
|
this._openContextMenu();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user