panel: Fix corner positions for multi-monitors

The corner positions were only based on the panel's dimensions, its
position needs to be taken into account as well.
This commit is contained in:
Florian Müllner 2011-02-21 19:06:07 +01:00
parent 21cc6a07f5
commit fb800f3d8b

View File

@ -632,9 +632,11 @@ PanelCorner.prototype = {
this.actor.set_size(cornerRadius,
innerBorderWidth + outerBorderWidth + cornerRadius);
if (this._side == St.Side.LEFT)
this.actor.set_position(0, Main.panel.actor.height - innerBorderWidth - outerBorderWidth);
this.actor.set_position(Main.panel.actor.x,
Main.panel.actor.y + Main.panel.actor.height - innerBorderWidth - outerBorderWidth);
else
this.actor.set_position(Main.panel.actor.width - cornerRadius, Main.panel.actor.height - innerBorderWidth - outerBorderWidth);
this.actor.set_position(Main.panel.actor.x + Main.panel.actor.width - cornerRadius,
Main.panel.actor.y + Main.panel.actor.height - innerBorderWidth - outerBorderWidth);
}
};