diff --git a/src/appIcons.js b/src/appIcons.js index e395944..da81d5c 100644 --- a/src/appIcons.js +++ b/src/appIcons.js @@ -1956,20 +1956,15 @@ export class TaskbarSecondaryMenu extends AppMenu.AppMenu { } _quitFromTaskbar(all) { - let time = global.get_current_time() let windows = !all && this.sourceActor.window // ungrouped applications ? [this.sourceActor.window] : getInterestingWindows(this._app, this.sourceActor.dtpPanel.monitor) - if (windows.length == this._app.get_windows().length) - this._app.request_quit() - - GLib.idle_add(GLib.PRIORITY_DEFAULT_IDLE, () => { - windows.forEach((w) => !!w.get_compositor_private() && w.delete(time++)) - - return GLib.SOURCE_REMOVE - }) + windows.forEach( + (w) => + !!w.get_compositor_private() && w.delete(global.get_current_time()), + ) } setApp(app) {