mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
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
86bd5b281d
commit
70057c6a55
1 changed files with 4 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue