Browse files

Delete window's menu when closing a window

  • Loading branch information...
1 parent f6d0e9a commit 3dafbb134fdce4d2951a686aec08f76ec854f941 @glebihan glebihan committed Dec 16, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 js/ui/windowlist.js
View
2 js/ui/windowlist.js
@@ -91,6 +91,7 @@ AppMenuButtonRightClickMenu.prototype = {
_onCloseWindowActivate: function(actor, event){
this.metaWindow.delete(global.get_current_time());
+ this.destroy();
},
_onMinimizeWindowActivate: function(actor, event){
@@ -333,6 +334,7 @@ AppMenuButton.prototype = {
this._windowHandle(false);
} else if (Shell.get_event_state(event) & Clutter.ModifierType.BUTTON2_MASK) {
this.metaWindow.delete(global.get_current_time());
+ this.rightClickMenu.destroy();
} else if (Shell.get_event_state(event) & Clutter.ModifierType.BUTTON3_MASK) {
if (!this.rightClickMenu.isOpen) {
// Setting the max-height won't do any good if the minimum height of the

0 comments on commit 3dafbb1

Please sign in to comment.