[gnome-shell] layoutManager: Treat screen_sized OR windows as fullscreen



commit 1e2d16273c6ae68a13c5f235025273f054129744
Author: Adel Gadllah <adel gadllah gmail com>
Date:   Mon Sep 26 20:33:59 2011 +0200

    layoutManager: Treat screen_sized OR windows as fullscreen
    
    https://bugzilla.gnome.org/show_bug.cgi?id=660166

 js/ui/layout.js |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/layout.js b/js/ui/layout.js
index f21fcca..a50c9f2 100644
--- a/js/ui/layout.js
+++ b/js/ui/layout.js
@@ -825,6 +825,13 @@ Chrome.prototype = {
                     monitor.inFullscreen = true;
             }
             if (layer == Meta.StackLayer.OVERRIDE_REDIRECT) {
+                // Check whether the window is screen sized
+                if (window.x == 0 && window.y == 0 &&
+                    window.width == global.screen_width &&
+                    window.height == global.screen_height)
+                    monitor.inFullscreen = true;
+
+                // Or whether it is monitor sized
                 let monitor = this._findMonitorForWindow(window);
                 if (monitor &&
                     window.x <= monitor.x &&



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