background: Fix the check for spanning backgrounds

this._monitorIndex does not exist, and neither does
MetaBackground.monitor_index...

https://bugzilla.gnome.org/show_bug.cgi?id=719803
This commit is contained in:
Jasper St. Pierre 2013-12-03 15:41:42 -05:00
parent ec62e49001
commit 04ea95049a

View File

@ -222,7 +222,7 @@ const BackgroundCache = new Lang.Class({
continue;
if (params.style == GDesktopEnums.BackgroundStyle.SPANNED &&
this._images[i].monitor_index != this._monitorIndex)
this._images[i].monitor != params.monitorIndex)
continue;
candidateContent = this._images[i];