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
This commit is contained in:
Adel Gadllah 2013-02-23 22:02:17 +01:00
parent 310dc10c4d
commit a361180745

View File

@ -886,9 +886,9 @@ const LayoutManager = new Lang.Class({
for (let i = 0; i < this.monitors.length; i++) for (let i = 0; i < this.monitors.length; i++)
this.monitors[i].inFullscreen = true; this.monitors[i].inFullscreen = true;
} else { } else {
let monitor = this.monitors[metaWindow.get_monitor()]; let monitors = metaWindow.get_all_monitors();
if (monitor) for (let i = 0; i < monitors.length; i++)
monitor.inFullscreen = true; this.monitors[i].inFullscreen = true;
} }
} }
} }