[gnome-shell] windowManager: Handle fullscreening from zero sized windows



commit 3d6bf43649657cda522cfa37b82617a94d2e3927
Author: Rui Matos <tiagomatos gmail com>
Date:   Wed Nov 23 15:35:03 2016 +0100

    windowManager: Handle fullscreening from zero sized windows
    
    Wayland clients can request their surfaces to be fullscreened before
    commiting a buffer which means that we need to handle fullscreen
    requests for which the old size is 0x0, preferably without warnings.
    
    Since the mapping animation also runs for these windows, we can simply
    bail out and ignore the fullscreen size change.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=770345

 js/ui/windowManager.js |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/windowManager.js b/js/ui/windowManager.js
index 9864a15..eb7716a 100644
--- a/js/ui/windowManager.js
+++ b/js/ui/windowManager.js
@@ -1256,8 +1256,9 @@ const WindowManager = new Lang.Class({
             return;
         }
 
-        if (whichChange == Meta.SizeChange.FULLSCREEN ||
-            whichChange == Meta.SizeChange.UNFULLSCREEN)
+        if ((whichChange == Meta.SizeChange.FULLSCREEN ||
+             whichChange == Meta.SizeChange.UNFULLSCREEN) &&
+            oldFrameRect.width > 0 && oldFrameRect.height > 0)
             this._fullscreenAnimation(shellwm, actor, oldFrameRect, whichChange);
         else
             shellwm.completed_size_change(actor);


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