[gnome-shell] layout: Don't use the corner's position for positioning ripples
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] layout: Don't use the corner's position for positioning ripples
- Date: Mon, 4 Mar 2013 22:03:45 +0000 (UTC)
commit 7be1fe09f1315e7d9ab0cd54d06ae01839d0afe8
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 6ee51ac..315bc10 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]