overview: Don't block on wayland popovers

We don't allow entering the overview when there's an ongoing grab
operation, as they are generally incompatible with ClutterGrab.

The exception are wayland popups which are expected to work, and
don't conflict with ClutterGrabs.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6092

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2549>
(cherry picked from commit a4e2d708e5)
This commit is contained in:
Florian Müllner 2022-11-18 23:57:03 +01:00
parent 78757470b5
commit 250b730630

View file

@ -450,7 +450,8 @@ var Overview = class extends Signals.EventEmitter {
if (this._shown) {
let shouldBeModal = !this._inXdndDrag;
if (shouldBeModal && !this._modal) {
if (global.display.get_grab_op() !== Meta.GrabOp.NONE) {
if (global.display.get_grab_op() !== Meta.GrabOp.NONE &&
global.display.get_grab_op() !== Meta.GrabOp.WAYLAND_POPUP) {
this.hide();
return false;
}