[gnome-shell/wip/abono/maximize: 2/5] windowManager: Use sourceRect for consistency
- From: Alessandro Bono <abono src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/abono/maximize: 2/5] windowManager: Use sourceRect for consistency
- Date: Sat, 20 May 2017 18:45:11 +0000 (UTC)
commit 712ed0bb8a024002144041429b984bc86c6c1979
Author: Alessandro Bono <abono gnome org>
Date: Sat May 20 17:04:08 2017 +0200
windowManager: Use sourceRect for consistency
js/ui/windowManager.js | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/js/ui/windowManager.js b/js/ui/windowManager.js
index b987467..85b2d9b 100644
--- a/js/ui/windowManager.js
+++ b/js/ui/windowManager.js
@@ -1348,9 +1348,10 @@ const WindowManager = new Lang.Class({
let actorClone = actor.__fullscreenInfo.clone;
let targetRect = actor.meta_window.get_frame_rect();
+ let sourceRect = actor.__fullscreenInfo.oldRect;
- let scaleX = targetRect.width / actorClone.width;
- let scaleY = targetRect.height / actorClone.height;
+ let scaleX = targetRect.width / sourceRect.width;
+ let scaleY = targetRect.height / sourceRect.height;
this._resizing.push(actor);
@@ -1366,7 +1367,6 @@ const WindowManager = new Lang.Class({
});
let monitor = Main.layoutManager.monitors[actor.meta_window.get_monitor()];
- let sourceRect = actor.__fullscreenInfo.oldRect;
if (sourceRect) {
actor.translation_x = sourceRect.x - monitor.x;
actor.translation_y = sourceRect.y - monitor.y;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]