[gnome-shell/wip/carlosg/grabs-pt2: 5/9] lookingGlass: Use lookingGlass dialog for modal grab
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/carlosg/grabs-pt2: 5/9] lookingGlass: Use lookingGlass dialog for modal grab
- Date: Mon, 22 Nov 2021 17:19:27 +0000 (UTC)
commit e1dff586db415f0daa97544a2a1d302878b1b711
Author: Carlos Garnacho <carlosg gnome org>
Date: Thu Nov 18 00:38:11 2021 +0100
lookingGlass: Use lookingGlass dialog for modal grab
We want the whole dialog to handle events while shown. To compensate
for the entry not being "grabbed", make it take focus when showing.
js/ui/lookingGlass.js | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/lookingGlass.js b/js/ui/lookingGlass.js
index 9b5ea46f61..4387114685 100644
--- a/js/ui/lookingGlass.js
+++ b/js/ui/lookingGlass.js
@@ -1333,7 +1333,7 @@ class LookingGlass extends St.BoxLayout {
if (this._open)
return;
- if (!Main.pushModal(this._entry, { actionMode: Shell.ActionMode.LOOKING_GLASS }))
+ if (!Main.pushModal(this, { actionMode: Shell.ActionMode.LOOKING_GLASS }))
return;
this._notebook.selectIndex(0);
@@ -1353,6 +1353,7 @@ class LookingGlass extends St.BoxLayout {
});
this._windowList.update();
+ this._entry.grab_key_focus();
}
close() {
@@ -1374,7 +1375,7 @@ class LookingGlass extends St.BoxLayout {
duration,
mode: Clutter.AnimationMode.EASE_OUT_QUAD,
onComplete: () => {
- Main.popModal(this._entry);
+ Main.popModal(this);
this.hide();
},
});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]