[gnome-shell/wip/fmuellner/close-dialog-backports: 1/3] closeDialog: Disable unredirection while showing
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/fmuellner/close-dialog-backports: 1/3] closeDialog: Disable unredirection while showing
- Date: Thu, 24 Jan 2019 15:51:54 +0000 (UTC)
commit 7b1544a7a2578a77baa8a34d577c2cc03a9f1701
Author: Florian Müllner <fmuellner gnome org>
Date: Mon May 21 21:21:05 2018 +0200
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();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]