[gnome-shell/wip/hot-corner-barriers: 10/11] layout: Don't use the corner's position for positioning ripples



commit ec324eb8e320023e827b9665f824787db28c5353
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Sun Mar 3 14:08:30 2013 -0500

    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 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/js/ui/layout.js b/js/ui/layout.js
index f70b0c5..3452e80 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,


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