messageTray: Fix sloppy backport

Commit 8111286463 was cherry-picked without accounting for the
screen/display API difference between 3-30 and 3-28.
This commit is contained in:
Florian Müllner 2019-01-24 16:23:39 +01:00
parent 1045b35c8b
commit a0f1ac87e9

View File

@ -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;