Ping the active window when using the app menu
Use the new meta_window_check_alive() to verify if the application is responding after the user activates an action from the app menu. This in particular restores the ability to force quit applications from the menu, even if the use a custom GMenu. https://bugzilla.gnome.org/show_bug.cgi?id=684340
This commit is contained in:
parent
0bc9d7455f
commit
ebd1bc83c9
@ -598,6 +598,11 @@ const AppMenuButton = new Lang.Class({
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
menu = new PopupMenu.RemoteMenu(this.actor, this._targetApp.menu, this._targetApp.action_group);
|
menu = new PopupMenu.RemoteMenu(this.actor, this._targetApp.menu, this._targetApp.action_group);
|
||||||
|
menu.connect('activate', Lang.bind(this, function() {
|
||||||
|
let win = this._targetApp.get_windows()[0];
|
||||||
|
win.check_alive(global.get_current_time());
|
||||||
|
}));
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
if (this.menu.isDummyQuitMenu)
|
if (this.menu.isDummyQuitMenu)
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user