[gnome-shell/wip/abono/maximize: 4/4] windowManager: Remove SizeChange check for animating



commit 148ae6e6c1acc73fcf08f649c8590687f021f3ba
Author: Alessandro Bono <abono gnome org>
Date:   Sat May 20 17:56:48 2017 +0200

    windowManager: Remove SizeChange check for animating
    
    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

 js/ui/windowManager.js |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/js/ui/windowManager.js b/js/ui/windowManager.js
index 0bec3ee..1c10884 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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]