windowManager: Use sourceRect for consistency
Now that we always pass the old frame rect, we can use that instead of picking up the dimensions of the clone actor. https://bugzilla.gnome.org/show_bug.cgi?id=766685
This commit is contained in:
parent
0dca5e513b
commit
4dfad536a3
@ -1346,9 +1346,10 @@ const WindowManager = new Lang.Class({
|
|||||||
|
|
||||||
let actorClone = actor.__fullscreenInfo.clone;
|
let actorClone = actor.__fullscreenInfo.clone;
|
||||||
let targetRect = actor.meta_window.get_frame_rect();
|
let targetRect = actor.meta_window.get_frame_rect();
|
||||||
|
let sourceRect = actor.__fullscreenInfo.oldRect;
|
||||||
|
|
||||||
let scaleX = targetRect.width / actorClone.width;
|
let scaleX = targetRect.width / sourceRect.width;
|
||||||
let scaleY = targetRect.height / actorClone.height;
|
let scaleY = targetRect.height / sourceRect.height;
|
||||||
|
|
||||||
this._resizing.push(actor);
|
this._resizing.push(actor);
|
||||||
|
|
||||||
@ -1363,7 +1364,6 @@ const WindowManager = new Lang.Class({
|
|||||||
transition: 'easeOutQuad'
|
transition: 'easeOutQuad'
|
||||||
});
|
});
|
||||||
|
|
||||||
let sourceRect = actor.__fullscreenInfo.oldRect;
|
|
||||||
actor.translation_x = -targetRect.x + sourceRect.x;
|
actor.translation_x = -targetRect.x + sourceRect.x;
|
||||||
actor.translation_y = -targetRect.y + sourceRect.y;
|
actor.translation_y = -targetRect.y + sourceRect.y;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user