From 7b1544a7a2578a77baa8a34d577c2cc03a9f1701 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Mon, 21 May 2018 21:21:05 +0200 Subject: [PATCH] closeDialog: Disable unredirection while showing The dialog won't be visible when unredirection is in place (for example while a fullscreen window is focused), so disable unredirection while the dialog is up. https://gitlab.gnome.org/GNOME/gnome-shell/issues/298 --- js/ui/closeDialog.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/ui/closeDialog.js b/js/ui/closeDialog.js index aa0b5ceaf..821480a9c 100644 --- a/js/ui/closeDialog.js +++ b/js/ui/closeDialog.js @@ -97,6 +97,8 @@ var CloseDialog = new Lang.Class({ if (this._dialog != null) return; + Meta.disable_unredirect_for_screen(global.screen); + this._addWindowEffect(); this._initDialog(); @@ -117,6 +119,8 @@ var CloseDialog = new Lang.Class({ if (this._dialog == null) return; + Meta.enable_unredirect_for_screen(global.screen); + let dialog = this._dialog; this._dialog = null; this._removeWindowEffect();