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:
parent
a0f1ac87e9
commit
7b1544a7a2
@ -97,6 +97,8 @@ var CloseDialog = new Lang.Class({
|
|||||||
if (this._dialog != null)
|
if (this._dialog != null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Meta.disable_unredirect_for_screen(global.screen);
|
||||||
|
|
||||||
this._addWindowEffect();
|
this._addWindowEffect();
|
||||||
this._initDialog();
|
this._initDialog();
|
||||||
|
|
||||||
@ -117,6 +119,8 @@ var CloseDialog = new Lang.Class({
|
|||||||
if (this._dialog == null)
|
if (this._dialog == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Meta.enable_unredirect_for_screen(global.screen);
|
||||||
|
|
||||||
let dialog = this._dialog;
|
let dialog = this._dialog;
|
||||||
this._dialog = null;
|
this._dialog = null;
|
||||||
this._removeWindowEffect();
|
this._removeWindowEffect();
|
||||||
|
Loading…
Reference in New Issue
Block a user