[gnome-shell] layout: Handle _NET_WM_FULLSCREEN_MONITORS



commit a361180745f6e135ebba0b4c7551bab2551dc834
Author: Adel Gadllah <adel gadllah gmail com>
Date:   Sat Feb 23 22:02:17 2013 +0100

    layout: Handle _NET_WM_FULLSCREEN_MONITORS
    
    Mark all monitors that fullscreen when window is using
    the _NET_WM_FULLSCREEN_MONITORS to be fullscreen on multiple monitors.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=646861

 js/ui/layout.js |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/js/ui/layout.js b/js/ui/layout.js
index 2b96df8..56519b4 100644
--- a/js/ui/layout.js
+++ b/js/ui/layout.js
@@ -886,9 +886,9 @@ const LayoutManager = new Lang.Class({
                     for (let i = 0; i < this.monitors.length; i++)
                         this.monitors[i].inFullscreen = true;
                 } else {
-                    let monitor = this.monitors[metaWindow.get_monitor()];
-                    if (monitor)
-                        monitor.inFullscreen = true;
+                    let monitors = metaWindow.get_all_monitors();
+                    for (let i = 0; i < monitors.length; i++)
+                        this.monitors[i].inFullscreen = true;
                 }
             }
         }


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