From b3f5fdcb6bb68c8b672ce611850c5b50ff44cffe Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Tue, 1 Feb 2022 14:12:17 +0100 Subject: [PATCH] endSessionDialog: Connect to events in the dialog itself Connecting to stage events won't work from a modal dialog, since the grab will take events from the portions of the actor hierarchy above the grabbing actor. Connect to events from the dialog itself, so that the end session dialog can again show the "boot options" easter egg. Part-of: --- js/ui/endSessionDialog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/endSessionDialog.js b/js/ui/endSessionDialog.js index 1fdbd11b9..9f8bcb1ba 100644 --- a/js/ui/endSessionDialog.js +++ b/js/ui/endSessionDialog.js @@ -467,7 +467,7 @@ class EndSessionDialog extends ModalDialog.ModalDialog { label: C_('button', 'Boot Options'), }); this._rebootButtonAlt.visible = false; - this._capturedEventId = global.stage.connect('captured-event', + this._capturedEventId = this.connect('captured-event', this._onCapturedEvent.bind(this)); } }