summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Bono <abono@gnome.org>2017-05-20 17:56:48 +0200
committerAlessandro Bono <abono@gnome.org>2017-05-24 10:04:35 +0200
commit148ae6e6c1acc73fcf08f649c8590687f021f3ba (patch)
treeea80dd7f147ca15636ff12cff60586cd2986b9bd
parentf92438441f089ffc70f0522b71a44db74059935d (diff)
downloadgnome-shell-wip/abono/maximize.tar.gz
windowManager: Remove SizeChange check for animatingwip/abono/maximize
Since we want to animate both fullscreen and maximize actions, don't check anymore if it is a fullscreen change https://bugzilla.gnome.org/show_bug.cgi?id=766685
-rw-r--r--js/ui/windowManager.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/js/ui/windowManager.js b/js/ui/windowManager.js
index 0bec3eee5..1c10884b5 100644
--- a/js/ui/windowManager.js
+++ b/js/ui/windowManager.js
@@ -1313,9 +1313,7 @@ const WindowManager = new Lang.Class({
return;
}
- if ((whichChange == Meta.SizeChange.FULLSCREEN ||
- whichChange == Meta.SizeChange.UNFULLSCREEN) &&
- oldFrameRect.width > 0 && oldFrameRect.height > 0)
+ if (oldFrameRect.width > 0 && oldFrameRect.height > 0)
this._prepareAnimationInfo(shellwm, actor, oldFrameRect, whichChange);
else
shellwm.completed_size_change(actor);