[gnome-shell/gnome-3-28] messageTray: Fix sloppy backport



commit a0f1ac87e9063c5e85941d1118e04029ab7c4cba
Author: Florian Müllner <fmuellner gnome org>
Date:   Thu Jan 24 16:23:39 2019 +0100

    messageTray: Fix sloppy backport
    
    Commit 8111286463b8 was cherry-picked without accounting for the
    screen/display API difference between 3-30 and 3-28.

 js/ui/messageTray.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js
index 3fdaaac86..421848b2a 100644
--- a/js/ui/messageTray.js
+++ b/js/ui/messageTray.js
@@ -1320,7 +1320,7 @@ var MessageTray = new Lang.Class({
         this._bannerBin.y = -this._banner.actor.height;
         this.actor.show();
 
-        Meta.disable_unredirect_for_display(global.display);
+        Meta.disable_unredirect_for_screen(global.screen);
         this._updateShowingNotification();
 
         let [x, y, mods] = global.get_pointer();
@@ -1458,7 +1458,7 @@ var MessageTray = new Lang.Class({
 
         this._pointerInNotification = false;
         this._notificationRemoved = false;
-        Meta.enable_unredirect_for_display(global.display);
+        Meta.enable_unredirect_for_screen(global.screen);
 
         this._banner.actor.destroy();
         this._banner = null;


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