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
This commit is contained in:
Florian Müllner 2018-05-21 21:21:05 +02:00
parent a0f1ac87e9
commit 7b1544a7a2

View File

@ -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();