layout: Mark the correct monitor as fullscreen

This commit is contained in:
Jasper St. Pierre 2013-02-28 13:34:05 -05:00
parent 6e89d2f46a
commit 804ff8b5a5

View File

@ -887,8 +887,10 @@ const LayoutManager = new Lang.Class({
this.monitors[i].inFullscreen = true; this.monitors[i].inFullscreen = true;
} else { } else {
let monitors = metaWindow.get_all_monitors(); let monitors = metaWindow.get_all_monitors();
for (let i = 0; i < monitors.length; i++) for (let i = 0; i < monitors.length; i++) {
this.monitors[i].inFullscreen = true; let index = monitors[i];
this.monitors[index].inFullscreen = true;
}
} }
} }
} }