From d850c8599eaa29c55ff095199532685744473b38 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Fri, 27 Jun 2014 10:53:14 -0400 Subject: [PATCH] windowManager: Don't use ClutterActor.scale-gravity It's deprecated as well. --- js/ui/windowManager.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/ui/windowManager.js b/js/ui/windowManager.js index bca0466c0..431deb16c 100644 --- a/js/ui/windowManager.js +++ b/js/ui/windowManager.js @@ -903,7 +903,7 @@ const WindowManager = new Lang.Class({ /* Scale the window from the center of the parent */ this._checkDimming(actor.get_meta_window().get_transient_for()); actor.set_scale(1.0, 0.0); - actor.scale_gravity = Clutter.Gravity.CENTER; + actor.set_pivot_point(0.5, 0.5); actor.show(); this._mapping.push(actor); @@ -977,7 +977,7 @@ const WindowManager = new Lang.Class({ this._checkDimming(parent, window); actor.set_scale(1.0, 1.0); - actor.scale_gravity = Clutter.Gravity.CENTER; + actor.set_pivot_point(0.5, 0.5); actor.show(); actor._parentDestroyId = parent.connect('unmanaged', Lang.bind(this, function () {