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>
This commit is contained in:
Florian Müllner 2022-11-18 23:57:03 +01:00 committed by Marge Bot
parent b0befbbfbb
commit a4e2d708e5

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;
}