[gnome-shell/wip/carlosg/grabs-pt2: 1/11] modalDialog: Make reactive
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/carlosg/grabs-pt2: 1/11] modalDialog: Make reactive
- Date: Fri, 19 Nov 2021 13:23:29 +0000 (UTC)
commit 595a912b1f38dd336d17def2043997cb9737963d
Author: Carlos Garnacho <carlosg gnome org>
Date: Thu Nov 18 00:03:08 2021 +0100
modalDialog: Make reactive
Some dialogs like the runDialog expect this actor to receive
key events while it is not reactive. Whatever that black magic was
it will no longer work.
Make the actor reactive, so it can simply handle key events.
js/ui/modalDialog.js | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/js/ui/modalDialog.js b/js/ui/modalDialog.js
index caa874454f..3d7d22c0c5 100644
--- a/js/ui/modalDialog.js
+++ b/js/ui/modalDialog.js
@@ -32,9 +32,10 @@ var ModalDialog = GObject.registerClass({
}, class ModalDialog extends St.Widget {
_init(params) {
super._init({ visible: false,
- x: 0,
- y: 0,
- accessible_role: Atk.Role.DIALOG });
+ reactive: true,
+ x: 0,
+ y: 0,
+ accessible_role: Atk.Role.DIALOG });
params = Params.parse(params, { shellReactive: false,
styleClass: null,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]