Fix missing window confirmation dialog on quit

gh-2396
This commit is contained in:
Charles Gagnon
2025-10-07 17:47:57 -04:00
parent e6670cf2c9
commit bcdbe125ba

View File

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