[gnome-shell/wip/carlosg/grabs-pt2: 8/19] overview: Grab on the stage
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/carlosg/grabs-pt2: 8/19] overview: Grab on the stage
- Date: Fri, 28 Jan 2022 12:01:56 +0000 (UTC)
commit 3d4f60aaf01a013220ddcaf36df3e4e79636cc34
Author: Carlos Garnacho <carlosg gnome org>
Date: Thu Nov 18 00:37:26 2021 +0100
overview: Grab on the stage
This is more in line with the places where we want events to be
handled (i.e. all). So make the overview take a grab on the
stage itself.
js/ui/overview.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/overview.js b/js/ui/overview.js
index 87bf835b03..2312bb10d0 100644
--- a/js/ui/overview.js
+++ b/js/ui/overview.js
@@ -488,7 +488,7 @@ var Overview = class {
let shouldBeModal = !this._inXdndDrag;
if (shouldBeModal && !this._modal) {
let actionMode = Shell.ActionMode.OVERVIEW;
- if (Main.pushModal(this._overview, { actionMode })) {
+ if (Main.pushModal(global.stage, { actionMode })) {
this._modal = true;
} else {
this.hide();
@@ -498,7 +498,7 @@ var Overview = class {
} else {
// eslint-disable-next-line no-lonely-if
if (this._modal) {
- Main.popModal(this._overview);
+ Main.popModal(global.stage);
this._modal = false;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]