layout: Fix regressions

Commit 6b4f524620 removed the layer checks
_updateFullscreen ... this causes corruption when alt-tabbing out
of a fullscreen window so restore the check.

The commit also removed the screen sized check so we are no longer
setting all monitors to fullscreen. Fix that as well by using
window.is_screen_sized() to perform the check.

https://bugzilla.gnome.org/show_bug.cgi?id=694079
This commit is contained in:
Adel Gadllah 2013-02-18 13:14:42 +01:00
parent 9936f97fcb
commit d9770dcffb

View File

@ -776,12 +776,18 @@ const LayoutManager = new Lang.Class({
if (!metaWindow.showing_on_its_workspace())
continue;
if (metaWindow.is_monitor_sized()) {
if (layer == Meta.StackLayer.FULLSCREEN ||
(layer == Meta.StackLayer.OVERRIDE_REDIRECT && metaWindow.is_monitor_sized())) {
if (metaWindow.is_screen_sized()) {
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;
}
}
}
},
_windowsRestacked: function() {