From a361180745f6e135ebba0b4c7551bab2551dc834 Mon Sep 17 00:00:00 2001 From: Adel Gadllah Date: Sat, 23 Feb 2013 22:02:17 +0100 Subject: [PATCH] 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 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/ui/layout.js b/js/ui/layout.js index 2b96df83d..56519b401 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; } } }