mirror of
https://github.com/morgan9e/dash-to-panel
synced 2026-04-14 16:24:03 +09:00
Fix missing window confirmation dialog on quit
gh-2396
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user