[gnome-shell] closeDialog: use {disable, enable}_unredirect_for_display



commit f7355f593d0d384b9b12fdfc82f67ce7e3efe7bb
Author: Marco Trevisan (Treviño) <mail 3v1n0 net>
Date:   Sun Jul 8 17:37:53 2018 +0200

    closeDialog: use {disable,enable}_unredirect_for_display
    
    Remove leftover global.screen presency

 js/ui/closeDialog.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/closeDialog.js b/js/ui/closeDialog.js
index 7943880d8..27e406434 100644
--- a/js/ui/closeDialog.js
+++ b/js/ui/closeDialog.js
@@ -100,7 +100,7 @@ var CloseDialog = new Lang.Class({
         if (this._dialog != null)
             return;
 
-        Meta.disable_unredirect_for_screen(global.screen);
+        Meta.disable_unredirect_for_display(global.display);
 
         this._timeoutId = GLib.timeout_add(GLib.PRIORITY_DEFAULT, ALIVE_TIMEOUT,
             () => {
@@ -128,7 +128,7 @@ var CloseDialog = new Lang.Class({
         if (this._dialog == null)
             return;
 
-        Meta.enable_unredirect_for_screen(global.screen);
+        Meta.enable_unredirect_for_display(global.display);
 
         GLib.source_remove(this._timeoutId);
         this._timeoutId = 0;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]