From 7be1fe09f1315e7d9ab0cd54d06ae01839d0afe8 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Sun, 3 Mar 2013 14:08:30 -0500 Subject: [PATCH] layout: Don't use the corner's position for positioning ripples The corner may not be there in the future. https://bugzilla.gnome.org/show_bug.cgi?id=663661 --- js/ui/layout.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/js/ui/layout.js b/js/ui/layout.js index 6ee51ac12..315bc1024 100644 --- a/js/ui/layout.js +++ b/js/ui/layout.js @@ -1193,9 +1193,8 @@ const HotCorner = new Lang.Class({ ripple.opacity = 255 * Math.sqrt(startOpacity); ripple.scale_x = ripple.scale_y = startScale; - let [x, y] = this._corner.get_transformed_position(); - ripple.x = x; - ripple.y = y; + ripple.x = this._x; + ripple.y = this._y; Tweener.addTween(ripple, { _opacity: 0, scale_x: finalScale,