windowManager: Rename variable

Since there is already targetRect that represents where the
window is going to move, rename oldRect to sourceRect to
represent from where the window is moving.

https://bugzilla.gnome.org/show_bug.cgi?id=766685
This commit is contained in:
Alessandro Bono 2017-05-20 17:06:28 +02:00
parent 63f2fdd1a4
commit 7090592477

View File

@ -1366,10 +1366,10 @@ const WindowManager = new Lang.Class({
});
let monitor = Main.layoutManager.monitors[actor.meta_window.get_monitor()];
let oldRect = actor.__fullscreenInfo.oldRect;
if (oldRect) {
actor.translation_x = oldRect.x - monitor.x;
actor.translation_y = oldRect.y - monitor.y;
let sourceRect = actor.__fullscreenInfo.oldRect;
if (sourceRect) {
actor.translation_x = sourceRect.x - monitor.x;
actor.translation_y = sourceRect.y - monitor.y;
} else {
actor.translation_x = -(targetRect.x - monitor.x);
actor.translation_y = -(targetRect.y - monitor.y);