[gnome-shell] messageTray: Close menu when clicking outside of the menu
- From: Adel Gadllah <agadllah src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] messageTray: Close menu when clicking outside of the menu
- Date: Sat, 16 Feb 2013 18:56:13 +0000 (UTC)
commit b611ddda5e73703268ca7e4e24fdebb81ea06dff
Author: Adel Gadllah <adel gadllah gmail com>
Date: Sat Feb 16 19:51:46 2013 +0100
messageTray: Close menu when clicking outside of the menu
js/ui/messageTray.js | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js
index 512cb53..4c8c133 100644
--- a/js/ui/messageTray.js
+++ b/js/ui/messageTray.js
@@ -1749,6 +1749,8 @@ const MessageTray = new Lang.Class({
let button = action.get_button();
if (button == 3)
this._openContextMenu();
+ if (button == 1 && this._contextMenu.isOpen)
+ this._grabHelper.ungrab({ actor: this._contextMenu.actor });
}));
clickAction.connect('long-press', Lang.bind(this, function(action, actor, state) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]