mirror of
https://github.com/morgan9e/dash-to-panel
synced 2026-04-15 00:34:05 +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) {
|
_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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user