From 74418f212945e40aef41c34f4dd2fd614acdedf7 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Wed, 2 Dec 2009 17:14:04 -0500 Subject: [PATCH] update for chrome.js changes in master --- js/ui/messageTray.js | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index d105c98fa..fe7abf9ae 100644 --- a/js/ui/messageTray.js +++ b/js/ui/messageTray.js @@ -26,12 +26,7 @@ Notification.prototype = { this._text = new St.Label(); this.actor.add(this._text, { expand: true, x_fill: false, x_align: St.Align.MIDDLE }); - // Directly adding the actor to Main.chrome.actor is a hack to - // work around the fact that there is no way to add an actor that - // affects the input region but not the shape. - // See: https://bugzilla.gnome.org/show_bug.cgi?id=597044 - Main.chrome.actor.add_actor(this.actor); - Main.chrome.addInputRegionActor(this.actor); + Main.chrome.addActor(this.actor, { affectsStruts: false }); let primary = global.get_primary_monitor(); this.actor.y = primary.height; @@ -92,12 +87,7 @@ MessageTray.prototype = { this.actor = new St.Bin({ name: 'message-tray', reactive: true, x_align: St.Align.END }); - // Directly adding the actor to Main.chrome.actor is a hack to - // work around the fact that there is no way to add an actor that - // affects the input region but not the shape. - // See: https://bugzilla.gnome.org/show_bug.cgi?id=597044 - Main.chrome.actor.add_actor(this.actor); - Main.chrome.addInputRegionActor(this.actor); + Main.chrome.addActor(this.actor, { affectsStruts: false }); let primary = global.get_primary_monitor(); this.actor.x = 0;