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
@ -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…
Reference in New Issue
Block a user