mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
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. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2045>
This commit is contained in:
parent
f4cae72d17
commit
35d293df6c
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue