Commit ebd1bc83 authored by Giovanni Campagna's avatar Giovanni Campagna
Browse files

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.
parent 0bc9d745
......@@ -598,6 +598,11 @@ const AppMenuButton = new Lang.Class({
menu = new PopupMenu.RemoteMenu(,, this._targetApp.action_group);
menu.connect('activate', Lang.bind(this, function() {
let win = this._targetApp.get_windows()[0];
} else {
if (
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment